Reload thread data source without notifying the screen

This commit is contained in:
ismailgulek
2022-04-05 14:04:48 +03:00
parent b892b58428
commit 502e9ebd05
2 changed files with 16 additions and 2 deletions
@@ -973,6 +973,13 @@ const CGFloat kTypingCellHeight = 24;
// no need to reload when paginating back
return;
}
BOOL notify = YES;
if (self.threadId)
{
// no need to notify the thread screen, it'll cause a flickering
notify = NO;
}
NSUInteger count = 0;
@synchronized (bubbles)
{
@@ -980,7 +987,7 @@ const CGFloat kTypingCellHeight = 24;
}
if (count > 0)
{
[self reload];
[self reloadNotifying:notify];
}
}