Don't increment totalUnread count for sends or database loads

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-03-07 10:27:30 -08:00 committed by GitHub
parent b9f9cec71a
commit 89b00863f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -3126,7 +3126,8 @@ export function reducer(
}
}
if (oldestUnread) {
// If this is a new incoming message, we'll increment our totalUnread count
if (isNewMessage && !isJustSent && oldestUnread) {
const newUnread: number = newMessageIds.reduce((sum, messageId) => {
const message = lookup[messageId];