From c859d2134aec006c836765d43fe672cf65f82927 Mon Sep 17 00:00:00 2001 From: Antonio Mika Date: Fri, 17 Nov 2023 09:28:05 -0500 Subject: [PATCH] Update user.go to not broadcast a push notification when generated from us --- upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index ca56a82..95bad3a 100644 --- a/upstream.go +++ b/upstream.go @@ -681,7 +681,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err } } - if highlight || directMessage { + if !self && (highlight || directMessage) { go uc.network.broadcastWebPush(msg) if timestamp, err := time.Parse(xirc.ServerTimeLayout, string(msg.Tags["time"])); err == nil { uc.network.pushTargets.Set(bufferName, timestamp)