Skip backlog logic in downstreamConn.welcome on chathistory

This commit is contained in:
Simon Ser 2021-04-13 17:50:03 +02:00
parent 65c58adbd9
commit 45e2c0023a

View File

@ -976,6 +976,10 @@ func (dc *downstreamConn) welcome() error {
}) })
dc.forEachNetwork(func(net *network) { dc.forEachNetwork(func(net *network) {
if dc.caps["draft/chathistory"] || dc.user.msgStore == nil {
return
}
// Only send history if we're the first connected client with that name // Only send history if we're the first connected client with that name
// for the network // for the network
firstClient := true firstClient := true