aboutsummaryrefslogtreecommitdiff
path: root/matrix/pushrules/rule.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-23 01:00:13 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-23 01:00:13 +0200
commit16635dcde7b3402e7eff44864b4dba5a2ddd8a37 (patch)
tree35c00039aa5c8af833f94623ae717efae7b1ebf9 /matrix/pushrules/rule.go
parenta5e7800ab6e0e3ebf38b1a0e809d64afba649024 (diff)
Refactor PushRuleset#GetActions() and ViewMain event processing
Diffstat (limited to 'matrix/pushrules/rule.go')
-rw-r--r--matrix/pushrules/rule.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/matrix/pushrules/rule.go b/matrix/pushrules/rule.go
index 933d493..dd8a4d3 100644
--- a/matrix/pushrules/rule.go
+++ b/matrix/pushrules/rule.go
@@ -22,6 +22,10 @@ import (
"maunium.net/go/gomuks/matrix/rooms"
)
+type PushRuleCollection interface {
+ GetActions(room *rooms.Room, event *gomatrix.Event) PushActionArray
+}
+
type PushRuleArray []*PushRule
func (rules PushRuleArray) setType(typ PushRuleType) PushRuleArray {