mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-25 13:29:27 +01:00
Merge pull request #1962 from slingamn/readmarker_again
only send MARKREAD to sessions with the read-marker cap
This commit is contained in:
commit
40d70b8aeb
@ -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):
|
||||
// inform other 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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user