fix: re-order when notification updates occur in batch message receive job (#905)

This commit is contained in:
Harris 2022-06-15 16:54:35 +10:00 committed by GitHub
parent 4cfe871058
commit c677431867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -133,9 +133,9 @@ class BatchMessageReceiveJob(
trueUnreadCount -= (unreadFromMine + 1)
storage.markConversationAsRead(threadId, false)
}
SSKEnvironment.shared.notificationManager.updateNotification(context, threadId)
storage.incrementUnread(threadId, trueUnreadCount)
storage.updateThread(threadId, true)
SSKEnvironment.shared.notificationManager.updateNotification(context, threadId)
}
}