Respond to CR.

This commit is contained in:
Matthew Chen 2017-11-20 17:08:10 -05:00
parent 34811a635b
commit 5cfa7e35f4
1 changed files with 5 additions and 4 deletions

View File

@ -3942,12 +3942,13 @@ typedef NS_ENUM(NSInteger, MessagesRangeSizeMode) {
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.
// ViewItems modified while we were not observing may be stale.
//
// TODO: have a more fine-grained cache expiration based on rows modified.
[self.viewItemMap removeAllObjects];
[self resetMappings];
NSUInteger newCellCount = [self.messageMappings numberOfItemsInGroup:self.thread.uniqueId];
// Detect changes in the mapping's "window" size.