aboutsummaryrefslogtreecommitdiff
path: root/matrix/pushrules
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/pushrules')
-rw-r--r--matrix/pushrules/rule.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/matrix/pushrules/rule.go b/matrix/pushrules/rule.go
index ec51d24..ddb264e 100644
--- a/matrix/pushrules/rule.go
+++ b/matrix/pushrules/rule.go
@@ -19,8 +19,14 @@ package pushrules
import (
"maunium.net/go/gomuks/lib/glob"
"maunium.net/go/gomatrix"
+ "encoding/gob"
)
+func init() {
+ gob.Register(PushRuleArray{})
+ gob.Register(PushRuleMap{})
+}
+
type PushRuleCollection interface {
GetActions(room Room, event *gomatrix.Event) PushActionArray
}