Merge branch 'dev' into preformance-improvement

This commit is contained in:
Ryan Zhao 2022-03-03 13:27:57 +11:00
commit 5d97754635
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ NS_ASSUME_NONNULL_BEGIN
TSThread *thread = [TSThread fetchObjectWithUniqueID:groupID transaction:transaction];
// Only increase the count for message requests
if (!thread.isMessageRequest) { continue; }
if (![thread isMessageRequestUsingTransaction:transaction]) { continue; }
if ([unreadMessages numberOfItemsInGroup:groupID] > 0) {
count += 1;
}