aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-10-21 09:19:52 +0100
committerGitHub <noreply@github.com>2022-10-21 09:19:52 +0100
commit73e02463cf6e267fdba950d0d231f98f95bc7994 (patch)
tree45e43cbd0afca0ef3f622d622435c24ddbcd31e6
parent90414912012b274f49894b2819f5e6e393928da9 (diff)
Allow `m.read.private` to clear notifications (#2811)
Otherwise if a user switches to private read receipts, they may not be able to clear notification counts.
-rw-r--r--userapi/consumers/clientapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/consumers/clientapi.go b/userapi/consumers/clientapi.go
index c220d35c..79f1bf06 100644
--- a/userapi/consumers/clientapi.go
+++ b/userapi/consumers/clientapi.go
@@ -81,7 +81,7 @@ func (s *OutputReceiptEventConsumer) onMessage(ctx context.Context, msgs []*nats
readPos := msg.Header.Get(jetstream.EventID)
evType := msg.Header.Get("type")
- if readPos == "" || evType != "m.read" {
+ if readPos == "" || (evType != "m.read" && evType != "m.read.private") {
return true
}