diff options
author | kegsay <kegan@matrix.org> | 2023-04-28 16:00:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 16:00:22 +0100 |
commit | 1432743d1ad669718e8f70f4dc1f29a9762e3fc4 (patch) | |
tree | 942f6efed770f93393c8faffb3d60557c4e3710f /clientapi | |
parent | d23d0369cc20957cd1e65594dc1745d98dee77c5 (diff) |
Use PDU in more places (#3072)
Diffstat (limited to 'clientapi')
-rw-r--r-- | clientapi/routing/state.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clientapi/routing/state.go b/clientapi/routing/state.go index 3ea75a5d..705782e8 100644 --- a/clientapi/routing/state.go +++ b/clientapi/routing/state.go @@ -134,7 +134,7 @@ func OnIncomingStateRequest(ctx context.Context, device *userapi.Device, rsAPI a for _, ev := range stateRes.StateEvents { stateEvents = append( stateEvents, - synctypes.HeaderedToClientEvent(ev, synctypes.FormatAll), + synctypes.ToClientEvent(ev, synctypes.FormatAll), ) } } else { @@ -153,7 +153,7 @@ func OnIncomingStateRequest(ctx context.Context, device *userapi.Device, rsAPI a for _, ev := range stateAfterRes.StateEvents { stateEvents = append( stateEvents, - synctypes.HeaderedToClientEvent(ev, synctypes.FormatAll), + synctypes.ToClientEvent(ev, synctypes.FormatAll), ) } } @@ -312,7 +312,7 @@ func OnIncomingStateTypeRequest( } stateEvent := stateEventInStateResp{ - ClientEvent: synctypes.HeaderedToClientEvent(event, synctypes.FormatAll), + ClientEvent: synctypes.ToClientEvent(event, synctypes.FormatAll), } var res interface{} |