Update user.go to not broadcast a push notification when generated from us

This commit is contained in:
Antonio Mika 2023-11-17 09:28:05 -05:00 committed by Simon Ser
parent d354a30b43
commit c859d2134a
1 changed files with 1 additions and 1 deletions

View File

@ -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)