diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-04-06 18:03:00 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-04-06 18:03:00 +0300 |
commit | d0f55f4a6f26cb2bad09d58204c98d0090a78e70 (patch) | |
tree | b55279aebb7cb56e5bc1de38c3d465dc6863904c /matrix | |
parent | 625e2049b5b6ea915a83a182310f0b599593f3b1 (diff) |
Don't add events from state stream to timeline
Diffstat (limited to 'matrix')
-rw-r--r-- | matrix/matrix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go index 6985659..f19fa24 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -281,7 +281,7 @@ func (c *Container) SendPreferencesToMatrix() { // HandleMessage is the event handler for the m.room.message timeline event. func (c *Container) HandleMessage(source EventSource, evt *mautrix.Event) { - if source&EventSourceLeave != 0 { + if source&EventSourceLeave != 0 || source&EventSourceState != 0 { return } mainView := c.ui.MainView() |