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

pull/919/head
Harris 3 years ago committed by GitHub
parent 4cfe871058
commit c677431867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}
}

Loading…
Cancel
Save