Rework database observation in home and message views.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-07-25 12:58:30 -04:00
parent 1f1a681180
commit 2e7fe5cfd5
1 changed files with 6 additions and 1 deletions

View File

@ -3263,8 +3263,13 @@ typedef enum : NSUInteger {
forNotifications:notifications
withMappings:self.messageMappings];
if ([sectionChanges count] == 0 && [messageRowChanges count] == 0) {
// YapDatabase will ignore insertions within the message mapping's
// range that are not within the current mapping's contents. We
// may need to extend the mapping's contents to reflect the current
// range.
[self updateMessageMappingRangeOptions];
[self resetContentAndLayout];
return;
}