mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Actually the switch is less clear
This commit is contained in:
parent
b2c6e7d4fe
commit
1802bdb2d8
|
|
@ -81,12 +81,7 @@ func (s *OutputReceiptEventConsumer) onMessage(ctx context.Context, msgs []*nats
|
|||
readPos := msg.Header.Get(jetstream.EventID)
|
||||
evType := msg.Header.Get("type")
|
||||
|
||||
switch {
|
||||
case readPos == "":
|
||||
return true
|
||||
case evType == "m.read": // allowed
|
||||
case evType == "m.read.private": // allowed
|
||||
default:
|
||||
if readPos == "" || (evType != "m.read" && evType != "m.read.private") {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue