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

Commit

Permalink
Merge pull request #5464 from matrix-org/erikj/3pid_remote_invite_state
Browse files Browse the repository at this point in the history
Fix 3PID invite room state over federation.
  • Loading branch information
erikjohnston authored Jun 17, 2019
2 parents f12e1f0 + 3c9bb86 commit a9dab97
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions changelog.d/5464.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix missing invite state after exchanging 3PID invites over federaton.
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This image is designed to run either with an automatically generated
configuration file or with a custom configuration that requires manual editing.

An easy way to make use of this image is via docker-compose. See the
[contrib/docker](../contrib/docker) section of the synapse project for
[contrib/docker](https://github.com/matrix-org/synapse/tree/master/contrib/docker) section of the synapse project for
examples.

### Without Compose (harder)
Expand Down
6 changes: 0 additions & 6 deletions synapse/handlers/federation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2677,12 +2677,6 @@ def on_exchange_third_party_invite_request(self, origin, room_id, event_dict):
# though the sender isn't a local user.
event.internal_metadata.send_on_behalf_of = get_domain_from_id(event.sender)

# XXX we send the invite here, but send_membership_event also sends it,
# so we end up making two requests. I think this is redundant.
returned_invite = yield self.send_invite(origin, event)
# TODO: Make sure the signatures actually are correct.
event.signatures.update(returned_invite.signatures)

member_handler = self.hs.get_room_member_handler()
yield member_handler.send_membership_event(None, event, context)

Expand Down

0 comments on commit a9dab97

Please sign in to comment.