mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-20 17:16:46 +00:00
GODT-35: Finish all details and make tests pass
This commit is contained in:
@ -43,13 +43,12 @@ func (api *FakePMAPI) getCounts(addressID string) []*pmapi.MessagesCount {
|
||||
for _, labelID := range message.LabelIDs {
|
||||
if counts, ok := allCounts[labelID]; ok {
|
||||
counts.Total++
|
||||
if message.Unread == 1 {
|
||||
if message.Unread {
|
||||
counts.Unread++
|
||||
}
|
||||
} else {
|
||||
var unread int
|
||||
|
||||
if message.Unread == pmapi.True {
|
||||
if message.Unread {
|
||||
unread = 1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user