downstream: fix downstream check for draft/read-marker
`dc` is the source connection, `d` is the destination for the
broadcast.
Fixes: 7e21e79eab
("downstream: fix MARKREAD/READ command name in broadcast")
This commit is contained in:
parent
1e78e3e4b0
commit
c69ea81999
@ -3017,7 +3017,7 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
|
|||||||
network.forEachDownstream(func(d *downstreamConn) {
|
network.forEachDownstream(func(d *downstreamConn) {
|
||||||
if broadcast || dc.id == d.id {
|
if broadcast || dc.id == d.id {
|
||||||
cmd := "MARKREAD"
|
cmd := "MARKREAD"
|
||||||
if !dc.caps.IsEnabled("draft/read-marker") {
|
if !d.caps.IsEnabled("draft/read-marker") {
|
||||||
cmd = "READ"
|
cmd = "READ"
|
||||||
}
|
}
|
||||||
d.SendMessage(&irc.Message{
|
d.SendMessage(&irc.Message{
|
||||||
|
Loading…
Reference in New Issue
Block a user