Ignore READ commands for service

This commit is contained in:
Simon Ser 2022-02-12 19:07:30 +01:00
parent 7e20c27332
commit 155e811cd9

View File

@ -2766,6 +2766,16 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
criteria = msg.Params[1] criteria = msg.Params[1]
} }
// We don't save read receipts for our service
if casemapASCII(target) == serviceNickCM {
dc.SendMessage(&irc.Message{
Prefix: dc.prefix(),
Command: "READ",
Params: []string{target, "*"},
})
return nil
}
uc, entity, err := dc.unmarshalEntity(target) uc, entity, err := dc.unmarshalEntity(target)
if err != nil { if err != nil {
return err return err