From d28a014e2d5b22f8c3cdb01b46ceac04001fa0ae Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Wed, 27 Sep 2017 16:52:31 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- .../MessageMetadataViewController.swift | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Signal/src/ViewControllers/MessageMetadataViewController.swift b/Signal/src/ViewControllers/MessageMetadataViewController.swift index 3cabec15a..98d081c41 100644 --- a/Signal/src/ViewControllers/MessageMetadataViewController.swift +++ b/Signal/src/ViewControllers/MessageMetadataViewController.swift @@ -447,14 +447,13 @@ class MessageMetadataViewController: OWSViewController { let notifications = self.databaseConnection.beginLongLivedReadTransaction() -// TODO: I can't figure out what the !@#$%&^* auto-generated Swift interface to this method is. -// guard self.databaseConnection.hasChange(forKey:message.uniqueId, -// inCollection:TSInteraction.collection, -// inNotifications:notifications) else { -// Logger.debug("\(TAG) No relevant changes.") -// return -// } -// + guard self.databaseConnection.hasChange(forKey:message.uniqueId, + inCollection:TSInteraction.collection(), + in:notifications) else { + Logger.debug("\(TAG) No relevant changes.") + return + } + updateDBConnectionAndMessageToLatest() updateContent()