aboutsummaryrefslogtreecommitdiff
path: root/roomserver/acls/acls.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/acls/acls.go')
-rw-r--r--roomserver/acls/acls.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/acls/acls.go b/roomserver/acls/acls.go
index 3850c256..b04828b6 100644
--- a/roomserver/acls/acls.go
+++ b/roomserver/acls/acls.go
@@ -63,7 +63,7 @@ func NewServerACLs(db ServerACLDatabase) *ServerACLs {
continue
}
if state != nil {
- acls.OnServerACLUpdate(state.Event)
+ acls.OnServerACLUpdate(state.PDU)
}
}
return acls
@@ -88,7 +88,7 @@ func compileACLRegex(orig string) (*regexp.Regexp, error) {
return regexp.Compile(escaped)
}
-func (s *ServerACLs) OnServerACLUpdate(state *gomatrixserverlib.Event) {
+func (s *ServerACLs) OnServerACLUpdate(state gomatrixserverlib.PDU) {
acls := &serverACL{}
if err := json.Unmarshal(state.Content(), &acls.ServerACL); err != nil {
logrus.WithError(err).Errorf("Failed to unmarshal state content for server ACLs")