From d0f55f4a6f26cb2bad09d58204c98d0090a78e70 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sat, 6 Apr 2019 18:03:00 +0300 Subject: Don't add events from state stream to timeline --- matrix/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'matrix') 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() -- cgit v1.2.3