From 331a1e90e3e3a52735e350b74402a3975f4b6cd8 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 19 Jun 2017 14:13:20 -0400 Subject: [PATCH] Avoid stale mapping in conversation view. // FREEBIE --- .../ViewControllers/ConversationView/MessagesViewController.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m index d9c226404..c0e2ec9c6 100644 --- a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m +++ b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m @@ -566,8 +566,6 @@ typedef enum : NSUInteger { // We need to `beginLongLivedReadTransaction` before we update our // mapping in order to jump to the most recent commit. [self.uiDatabaseConnection beginLongLivedReadTransaction]; - self.messageMappings = [[YapDatabaseViewMappings alloc] initWithGroups:@[ self.thread.uniqueId ] - view:TSMessageDatabaseViewExtensionName]; [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { [self.messageMappings updateWithTransaction:transaction]; }];