mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-22 11:41:38 +00: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:
parent
9041491201
commit
73e02463cf
@ -81,7 +81,7 @@ func (s *OutputReceiptEventConsumer) onMessage(ctx context.Context, msgs []*nats
|
|||||||
readPos := msg.Header.Get(jetstream.EventID)
|
readPos := msg.Header.Get(jetstream.EventID)
|
||||||
evType := msg.Header.Get("type")
|
evType := msg.Header.Get("type")
|
||||||
|
|
||||||
if readPos == "" || evType != "m.read" {
|
if readPos == "" || (evType != "m.read" && evType != "m.read.private") {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user