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

Implement MSC 1813 - Add room version to make APIs #4447

Merged
merged 4 commits into from
Jan 25, 2019

Conversation

erikjohnston
Copy link
Member

We also implement make_membership_event converting the returned on.

Based on #4437

We also implement `make_membership_event` converting the returned
room version to an event format version.
@codecov-io
Copy link

codecov-io commented Jan 23, 2019

Codecov Report

Merging #4447 into develop will increase coverage by 0.02%.
The diff coverage is 81.81%.

@@             Coverage Diff             @@
##           develop    #4447      +/-   ##
===========================================
+ Coverage    74.77%   74.79%   +0.02%     
===========================================
  Files          336      336              
  Lines        34023    34031       +8     
  Branches      5533     5534       +1     
===========================================
+ Hits         25439    25454      +15     
+ Misses        7014     7004      -10     
- Partials      1570     1573       +3

@erikjohnston erikjohnston requested a review from a team January 23, 2019 17:08
int
"""
if room_version not in KNOWN_ROOM_VERSIONS:
raise
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to raise something here

where origin is the remote homeserver which generated the event.
Deferred[tuple[str, dict, int]]: resolves to a tuple of
`(origin, event, event_format)` where origin is the remote
homeserver which generated the event.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you clarify that event_format is one of the values in synapse.api.constants.EventFormatVersions ?

@erikjohnston erikjohnston requested a review from a team January 24, 2019 18:35
Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@erikjohnston erikjohnston merged commit 28c21cd into develop Jan 25, 2019
turt2live added a commit to matrix-org/matrix-spec-proposals that referenced this pull request Jan 29, 2019
Original proposal: #1813
Implementation proof: matrix-org/synapse#4447

There are no changes from the original proposal.
turt2live added a commit to matrix-org/matrix-spec-proposals that referenced this pull request Jan 29, 2019
Original proposal: #1813
Implementation proof: matrix-org/synapse#4447

There are no changes from the original proposal.
@erikjohnston erikjohnston deleted the erikj/msc_1813 branch March 5, 2019 13:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants