Browse Source

only send MARKREAD to sessions with the read-marker cap

tags/v2.10.0-rc2
Shivaram Lingamneni 2 years ago
parent
commit
ef088373a8
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go View File

2784
 		// successful update (i.e. it moved the stored timestamp forward):
2784
 		// successful update (i.e. it moved the stored timestamp forward):
2785
 		// inform other sessions
2785
 		// inform other sessions
2786
 		for _, session := range client.Sessions() {
2786
 		for _, session := range client.Sessions() {
2787
-			if session != rb.session {
2787
+			if session != rb.session && session.capabilities.Has(caps.ReadMarker) {
2788
 				session.Send(nil, server.name, "MARKREAD", unfoldedTarget, readTimestamp)
2788
 				session.Send(nil, server.name, "MARKREAD", unfoldedTarget, readTimestamp)
2789
 			}
2789
 			}
2790
 		}
2790
 		}

Loading…
Cancel
Save