diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-12-02 15:14:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-02 15:14:12 +0000 |
commit | 417c7d3569151ddd54c1264a8241b611e58c2acd (patch) | |
tree | 81198a449287f9d4802e665c142bfccfb3334953 /syncapi | |
parent | bdf64903756414cf5a542af645b2dc09875787cc (diff) |
Send client events to appservices (#1603)
* Send client events to appservices
* FormatSync instead of FormatAll
Diffstat (limited to 'syncapi')
-rw-r--r-- | syncapi/types/types.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/syncapi/types/types.go b/syncapi/types/types.go index 91d33d4a..36f30c20 100644 --- a/syncapi/types/types.go +++ b/syncapi/types/types.go @@ -484,8 +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. - format, _ := event.RoomVersion.EventFormat() - inviteEvent := gomatrixserverlib.ToClientEvent(event.Unwrap(), format) + 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) |