Allow `m.read.private` to clear notifications
Otherwise if a user switches to private read receipts, they may not be
able to clear notification counts.
MODIFY
userapi/consumers/clientapi.go
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
}

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.