0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-12-25 20:13:44 +01:00

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.
This commit is contained in:
Neil Alexander 2022-10-21 09:19:52 +01:00 committed by GitHub
parent 9041491201
commit 73e02463cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}