~emersion/soju

31cd56875a9966fa86239f69812b25787088db47 — Simon Ser 22 days ago 26473ed
Use sendTargetBacklog when re-attaching a channel

No need to attempt to send backlog for all targets in the network.
We're only interested in a single channel.
1 files changed, 1 insertions(+), 3 deletions(-)

M user.go
M user.go => user.go +1 -3
@@ 226,9 226,7 @@ func (net *network) attach(ch *Channel) {
			forwardChannel(dc, uch)
		}

		if _, ok := net.delivered[ch.Name]; ok {
			dc.sendNetworkBacklog(net)
		}
		dc.sendTargetBacklog(net, ch.Name)
	})
}