mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Allow m.read.private to clear notifications
This commit is contained in:
parent
8cbe14bd6d
commit
b2c6e7d4fe
|
|
@ -81,7 +81,12 @@ 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" {
|
switch {
|
||||||
|
case readPos == "":
|
||||||
|
return true
|
||||||
|
case evType == "m.read": // allowed
|
||||||
|
case evType == "m.read.private": // allowed
|
||||||
|
default:
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue