From ae770a97e2d1e702101bdd45a5ab380787feb784 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 16 Apr 2020 19:47:09 +0300 Subject: Make sure own messages don't cause notifications --- matrix/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/matrix.go b/matrix/matrix.go index cd40a5a..dcf9214 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -543,7 +543,7 @@ func (c *Container) HandleMessage(source EventSource, mxEvent *event.Event) { message := roomView.AddEvent(evt) if message != nil { roomView.MxRoom().LastReceivedMessage = message.Time() - if c.syncer.FirstSyncDone { + if c.syncer.FirstSyncDone && evt.Sender != c.config.UserID { pushRules := c.PushRules().GetActions(roomView.MxRoom(), evt.Event).Should() mainView.NotifyMessage(roomView.MxRoom(), message, pushRules) c.ui.Render() -- cgit v1.2.3