Skip to content

Commit

Permalink
do not add muted accounts to global counter
Browse files Browse the repository at this point in the history
see discussion at
deltachat/deltachat-android#3143 (review) ,
there was the idea to show them as 'muted',
however, we tried the simple solution first, which make sense as well
and does not have the issue with the global counter on the badge icon
(where we could not use different colors)
  • Loading branch information
r10s committed Jul 23, 2024
1 parent 3b38885 commit a34527d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion deltachat-ios/DC/DcAccount.swift
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ public class DcAccounts {
let skipId = skipCurrent ? getSelected().id : -1
for accountId in getAll() {
if accountId != skipId {
freshCount += get(id: accountId).getFreshMessages().count
let dcContext = get(id: accountId)
if !dcContext.isMuted() {
freshCount += dcContext.getFreshMessages().count
}
}
}
return freshCount
Expand Down

0 comments on commit a34527d

Please sign in to comment.