Update user.go to not broadcast a push notification when generated from us
This commit is contained in:
parent
d354a30b43
commit
c859d2134a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user