Don't add events from state stream to timeline

This commit is contained in:
Tulir Asokan 2019-04-06 18:03:00 +03:00
parent 625e2049b5
commit d0f55f4a6f

View File

@ -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()