Ignore messages from other rooms.

master
Robert Jacob 4 years ago
parent 8698169e0a
commit ce2a857079
  1. 4
      matrix/matrix.go

@ -48,6 +48,10 @@ func Listener(storage *spaceapi.Storage, homeServer, userID, token, room string)
return
}
if ev.RoomID != room {
return
}
msgType, ok := ev.MessageType()
if !ok || msgType != "m.text" {
return

Loading…
Cancel
Save