Fixes: "connected call" showing as "unconnected outgoing" call.

Expire viewItem cache when resetting mappings

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 3ab9337bf1
commit 34811a635b

@ -3941,7 +3941,13 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
CGFloat viewTopToContentBottom = self.safeContentHeight - self.collectionView.contentOffset.y;
NSUInteger oldCellCount = [self.messageMappings numberOfItemsInGroup:self.thread.uniqueId];
[self resetMappings];
// ViewItem's modified while we were not observing may be stale.
// TODO have a more fine-grained cache expiration based on rows modified.
[self.viewItemMap removeAllObjects];
NSUInteger newCellCount = [self.messageMappings numberOfItemsInGroup:self.thread.uniqueId];
// Detect changes in the mapping's "window" size.

Loading…
Cancel
Save