diff options
author | Wim <wim@42.be> | 2017-08-27 01:01:35 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2017-08-27 01:01:35 +0200 |
commit | cfb810713872a5f95a5a54c449fef3bce5aa05b5 (patch) | |
tree | b6b3a67f1af89b91339b55708d264ee7d5be1f57 /bridge/matrix/matrix.go | |
parent | 43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a (diff) | |
download | matterbridge-msglm-cfb810713872a5f95a5a54c449fef3bce5aa05b5.tar.gz matterbridge-msglm-cfb810713872a5f95a5a54c449fef3bce5aa05b5.tar.bz2 matterbridge-msglm-cfb810713872a5f95a5a54c449fef3bce5aa05b5.zip |
Relay notices (matrix). Closes #243
Diffstat (limited to 'bridge/matrix/matrix.go')
-rw-r--r-- | bridge/matrix/matrix.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/matrix/matrix.go b/bridge/matrix/matrix.go index 6cf6a566..b37738c6 100644 --- a/bridge/matrix/matrix.go +++ b/bridge/matrix/matrix.go @@ -100,7 +100,7 @@ func (b *Bmatrix) getRoomID(channel string) string { func (b *Bmatrix) handlematrix() error { syncer := b.mc.Syncer.(*matrix.DefaultSyncer) syncer.OnEventType("m.room.message", func(ev *matrix.Event) { - if (ev.Content["msgtype"].(string) == "m.text" || ev.Content["msgtype"].(string) == "m.emote") && ev.Sender != b.UserID { + if (ev.Content["msgtype"].(string) == "m.text" || ev.Content["msgtype"].(string) == "m.notice" || ev.Content["msgtype"].(string) == "m.emote") && ev.Sender != b.UserID { b.RLock() channel, ok := b.RoomMap[ev.RoomID] b.RUnlock() |