From add47f5cb859f341e6806b9e43019bc016a95604 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 2 Dec 2020 14:56:29 +0000 Subject: [PATCH] FormatSync instead of FormatAll --- syncapi/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syncapi/types/types.go b/syncapi/types/types.go index d359d17b5..36f30c20b 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -484,7 +484,7 @@ func NewInviteResponse(event *gomatrixserverlib.HeaderedEvent) *InviteResponse { // Then we'll see if we can create a partial of the invite event itself. // This is needed for clients to work out *who* sent the invite. - inviteEvent := gomatrixserverlib.ToClientEvent(event.Unwrap(), gomatrixserverlib.FormatAll) + inviteEvent := gomatrixserverlib.ToClientEvent(event.Unwrap(), gomatrixserverlib.FormatSync) inviteEvent.Unsigned = nil if ev, err := json.Marshal(inviteEvent); err == nil { res.InviteState.Events = append(res.InviteState.Events, ev)