summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-08-27 01:01:35 +0200
committerWim <wim@42.be>2017-08-27 01:01:35 +0200
commitcfb810713872a5f95a5a54c449fef3bce5aa05b5 (patch)
treeb6b3a67f1af89b91339b55708d264ee7d5be1f57 /bridge
parent43bd779fb7f8d9d19bec8bfd98dd4a5c29a1f76a (diff)
downloadmatterbridge-msglm-cfb810713872a5f95a5a54c449fef3bce5aa05b5.tar.gz
matterbridge-msglm-cfb810713872a5f95a5a54c449fef3bce5aa05b5.tar.bz2
matterbridge-msglm-cfb810713872a5f95a5a54c449fef3bce5aa05b5.zip
Relay notices (matrix). Closes #243
Diffstat (limited to 'bridge')
-rw-r--r--bridge/matrix/matrix.go2
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()