Avoid stale mapping in conversation view.

// FREEBIE
This commit is contained in:
Matthew Chen 2017-06-19 14:05:59 -04:00
parent d4a6a35ee3
commit f6f08891eb
1 changed files with 2 additions and 0 deletions

View File

@ -2698,6 +2698,8 @@ typedef enum : NSUInteger {
const int currentMaxRangeSize = (int)(self.page + 1) * kYapDatabasePageSize;
const int maxRangeSize = MAX(initialMaxRangeSize, currentMaxRangeSize);
// `ensureDynamicInteractionsForThread` should operate on the latest thread contents, so
// we should _read_ from uiDatabaseConnection and _write_ to `editingDatabaseConnection`.
self.dynamicInteractions =
[ThreadUtil ensureDynamicInteractionsForThread:self.thread
contactsManager:self.contactsManager