aboutsummaryrefslogtreecommitdiff
path: root/matrix/pushrules/rule.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-09-05 10:55:48 +0300
committerTulir Asokan <tulir@maunium.net>2018-09-05 10:55:48 +0300
commitcfb2cc057c32330be0ca0a68cfbd245cb2b8e31b (patch)
treef0d02d40d41091fd052582fe1fe701c80decf0d7 /matrix/pushrules/rule.go
parent68db26bcace31297471641fe95f8882e301f5699 (diff)
Update to latest gomatrix. Things are broken
Diffstat (limited to 'matrix/pushrules/rule.go')
-rw-r--r--matrix/pushrules/rule.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/matrix/pushrules/rule.go b/matrix/pushrules/rule.go
index 5ede895..71f71e5 100644
--- a/matrix/pushrules/rule.go
+++ b/matrix/pushrules/rule.go
@@ -154,6 +154,5 @@ func (rule *PushRule) matchPattern(room Room, event *gomatrix.Event) bool {
if err != nil {
return false
}
- text, _ := event.Content["body"].(string)
- return pattern.MatchString(text)
+ return pattern.MatchString(event.Content.Body)
}