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

Allow rejecting invites #317

Closed
wants to merge 2 commits into from
Closed

Allow rejecting invites #317

wants to merge 2 commits into from

Conversation

illicitonion
Copy link
Contributor

This is done by using the same /leave flow as you would use if you had
already accepted the invite and wanted to leave.

This is done by using the same /leave flow as you would use if you had
already accepted the invite and wanted to leave.
@@ -357,7 +357,7 @@ def get_event_auth(self, destination, room_id, event_id):
defer.returnValue(signed_auth)

@defer.inlineCallbacks
def make_join(self, destinations, room_id, user_id, content):
def make_membership_event(self, destinations, room_id, user_id, membership, content):
Copy link
Member

Choose a reason for hiding this comment

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

  • Docstring?
  • Can we assert that membership in [Membership.Join, Membership.Leave]?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@erikjohnston
Copy link
Member

LGTM

@illicitonion
Copy link
Contributor Author

Manually merged

@illicitonion illicitonion deleted the daniel/rejectinvites branch October 20, 2015 11:00
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

2 participants