any membership -> leave

pull/8751/head
Andrew Morgan 2020-11-13 16:26:42 +00:00
parent 86bd86418e
commit 19e33041e9
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
Generalise `RoomMemberHandler._locally_reject_invite` for any membership type.
Generalise `RoomMemberHandler._locally_reject_invite` to apply to more flows than just invite.

View File

@ -1104,11 +1104,11 @@ class RoomMemberMasterHandler(RoomMemberHandler):
#
logger.warning("Failed to reject invite: %s", e)
return await self._generate_local_out_of_band_membership(
return await self._generate_local_out_of_band_leave(
invite_event, txn_id, requester, content
)
async def _generate_local_out_of_band_membership(
async def _generate_local_out_of_band_leave(
self,
previous_membership_event: EventBase,
txn_id: Optional[str],