mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +01:00
only send MARKREAD to sessions with the read-marker cap
This commit is contained in:
parent
ae55a4c660
commit
ef088373a8
@ -2784,7 +2784,7 @@ func markReadHandler(server *Server, client *Client, msg ircmsg.Message, rb *Res
|
|||||||
// successful update (i.e. it moved the stored timestamp forward):
|
// successful update (i.e. it moved the stored timestamp forward):
|
||||||
// inform other sessions
|
// inform other sessions
|
||||||
for _, session := range client.Sessions() {
|
for _, session := range client.Sessions() {
|
||||||
if session != rb.session {
|
if session != rb.session && session.capabilities.Has(caps.ReadMarker) {
|
||||||
session.Send(nil, server.name, "MARKREAD", unfoldedTarget, readTimestamp)
|
session.Send(nil, server.name, "MARKREAD", unfoldedTarget, readTimestamp)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user