From cfb810713872a5f95a5a54c449fef3bce5aa05b5 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 27 Aug 2017 01:01:35 +0200 Subject: Relay notices (matrix). Closes #243 --- bridge/matrix/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bridge/matrix') 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() -- cgit v1.2.3