|
|
@ -561,6 +561,8 @@ typedef enum : NSUInteger {
|
|
|
|
// or on another device.
|
|
|
|
// or on another device.
|
|
|
|
[self hideInputIfNeeded];
|
|
|
|
[self hideInputIfNeeded];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.messageAdapterCache = [[NSCache alloc] init];
|
|
|
|
|
|
|
|
|
|
|
|
// We need to `beginLongLivedReadTransaction` before we update our
|
|
|
|
// We need to `beginLongLivedReadTransaction` before we update our
|
|
|
|
// mapping in order to jump to the most recent commit.
|
|
|
|
// mapping in order to jump to the most recent commit.
|
|
|
|
[self.uiDatabaseConnection beginLongLivedReadTransaction];
|
|
|
|
[self.uiDatabaseConnection beginLongLivedReadTransaction];
|
|
|
@ -3306,6 +3308,7 @@ typedef enum : NSUInteger {
|
|
|
|
[self.collectionView deleteItemsAtIndexPaths:@[ rowChange.indexPath ]];
|
|
|
|
[self.collectionView deleteItemsAtIndexPaths:@[ rowChange.indexPath ]];
|
|
|
|
|
|
|
|
|
|
|
|
YapCollectionKey *collectionKey = rowChange.collectionKey;
|
|
|
|
YapCollectionKey *collectionKey = rowChange.collectionKey;
|
|
|
|
|
|
|
|
OWSAssert(collectionKey.key.length > 0);
|
|
|
|
if (collectionKey.key) {
|
|
|
|
if (collectionKey.key) {
|
|
|
|
[self.messageAdapterCache removeObjectForKey:collectionKey.key];
|
|
|
|
[self.messageAdapterCache removeObjectForKey:collectionKey.key];
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -3329,6 +3332,7 @@ typedef enum : NSUInteger {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case YapDatabaseViewChangeUpdate: {
|
|
|
|
case YapDatabaseViewChangeUpdate: {
|
|
|
|
YapCollectionKey *collectionKey = rowChange.collectionKey;
|
|
|
|
YapCollectionKey *collectionKey = rowChange.collectionKey;
|
|
|
|
|
|
|
|
OWSAssert(collectionKey.key.length > 0);
|
|
|
|
if (collectionKey.key) {
|
|
|
|
if (collectionKey.key) {
|
|
|
|
[self.messageAdapterCache removeObjectForKey:collectionKey.key];
|
|
|
|
[self.messageAdapterCache removeObjectForKey:collectionKey.key];
|
|
|
|
}
|
|
|
|
}
|
|
|
|