3
0
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:
Shivaram Lingamneni 2022-05-20 01:58:14 -04:00
parent ae55a4c660
commit ef088373a8

View File

@ -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)
}
}