Skip to content

Commit

Permalink
Unread counters: increment only on msg event.
Browse files Browse the repository at this point in the history
  • Loading branch information
aforge committed Nov 15, 2022
1 parent 2fc18d5 commit 64bd235
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,8 @@ func userUpdater() {
}

var delta int
if upd.PushRcpt.Payload.What != "read" {
// Increment unread counter only on msg event.
if upd.PushRcpt.Payload.What == "msg" {
delta = 1
} else {
delta = 0
Expand Down

0 comments on commit 64bd235

Please sign in to comment.