aboutsummaryrefslogtreecommitdiff
path: root/matrix
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-04-16 19:47:09 +0300
committerTulir Asokan <tulir@maunium.net>2020-04-19 15:01:16 +0300
commitae770a97e2d1e702101bdd45a5ab380787feb784 (patch)
treec4bc4ee2bae4c2637b35336e37332a02d2796fa4 /matrix
parentbc80ff3a56a81ee07580880bd2a169958910b489 (diff)
Make sure own messages don't cause notifications
Diffstat (limited to 'matrix')
-rw-r--r--matrix/matrix.go2
1 files changed, 1 insertions, 1 deletions
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()