From 45e2c0023a325a1e4b689eec79f23276a356f56a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 13 Apr 2021 17:50:03 +0200 Subject: [PATCH] Skip backlog logic in downstreamConn.welcome on chathistory --- downstream.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/downstream.go b/downstream.go index 0d84e5c..b6129d2 100644 --- a/downstream.go +++ b/downstream.go @@ -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