aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/perform/perform_admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/internal/perform/perform_admin.go')
-rw-r--r--roomserver/internal/perform/perform_admin.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/roomserver/internal/perform/perform_admin.go b/roomserver/internal/perform/perform_admin.go
index 050e5a62..59675cd9 100644
--- a/roomserver/internal/perform/perform_admin.go
+++ b/roomserver/internal/perform/perform_admin.go
@@ -248,8 +248,8 @@ func (r *Admin) PerformAdminDownloadState(
return err
}
- authEventMap := map[string]*gomatrixserverlib.Event{}
- stateEventMap := map[string]*gomatrixserverlib.Event{}
+ authEventMap := map[string]gomatrixserverlib.PDU{}
+ stateEventMap := map[string]gomatrixserverlib.PDU{}
for _, fwdExtremity := range fwdExtremities {
var state gomatrixserverlib.StateResponse
@@ -276,10 +276,10 @@ func (r *Admin) PerformAdminDownloadState(
stateIDs := make([]string, 0, len(stateEventMap))
for _, authEvent := range authEventMap {
- authEvents = append(authEvents, &types.HeaderedEvent{Event: authEvent})
+ authEvents = append(authEvents, &types.HeaderedEvent{PDU: authEvent})
}
for _, stateEvent := range stateEventMap {
- stateEvents = append(stateEvents, &types.HeaderedEvent{Event: stateEvent})
+ stateEvents = append(stateEvents, &types.HeaderedEvent{PDU: stateEvent})
stateIDs = append(stateIDs, stateEvent.EventID())
}