Don't add events from state stream to timeline
This commit is contained in:
parent
625e2049b5
commit
d0f55f4a6f
@ -281,7 +281,7 @@ func (c *Container) SendPreferencesToMatrix() {
|
|||||||
|
|
||||||
// HandleMessage is the event handler for the m.room.message timeline event.
|
// HandleMessage is the event handler for the m.room.message timeline event.
|
||||||
func (c *Container) HandleMessage(source EventSource, evt *mautrix.Event) {
|
func (c *Container) HandleMessage(source EventSource, evt *mautrix.Event) {
|
||||||
if source&EventSourceLeave != 0 {
|
if source&EventSourceLeave != 0 || source&EventSourceState != 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
mainView := c.ui.MainView()
|
mainView := c.ui.MainView()
|
||||||
|
Loading…
Reference in New Issue
Block a user