Skip backlog logic in downstreamConn.welcome on chathistory

git-svn-id: file:///srv/svn/repo/suika/trunk@496 f0ae65fe-ee39-954e-97ec-027ff2717ef4
This commit is contained in:
contact 2021-04-13 15:50:03 +00:00
parent e32cf2acd9
commit 562beca198

View File

@ -976,6 +976,10 @@ func (dc *downstreamConn) welcome() error {
})
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
// for the network
firstClient := true