Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Federation event format returns a client event format #2604

Closed
Tracked by #3506
jevolk opened this issue Oct 29, 2017 · 1 comment
Closed
Tracked by #3506

Federation event format returns a client event format #2604

jevolk opened this issue Oct 29, 2017 · 1 comment

Comments

@jevolk
Copy link

jevolk commented Oct 29, 2017

Specification: 5.2 POST /_matrix/client/r0/user/{userId}/filter

event_format | enum
The format to use for events. 'client' will return the events in a format suitable for clients. 'federation' will return the raw event as receieved over federation. The default is 'client'. One of: ["client", "federation"]

Implementation: rest/client/v2_alpha/sync.py#L333

  def serialize(event):
            # TODO(mjark): Respect formatting requirements in the filter.
            return serialize_event(
                event, time_now, token_id=token_id,
                event_format=format_event_for_client_v2_without_room_id,
                only_event_fields=only_fields,
            )
@turt2live
Copy link
Member

Presumably fixed by #3790

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants