|
|
@ -109,7 +109,7 @@ class RoomMemberHandler(object): |
|
|
|
txn_id: Optional[str], |
|
|
|
txn_id: Optional[str], |
|
|
|
requester: Requester, |
|
|
|
requester: Requester, |
|
|
|
content: JsonDict, |
|
|
|
content: JsonDict, |
|
|
|
) -> Tuple[Optional[str], int]: |
|
|
|
) -> Tuple[str, int]: |
|
|
|
""" |
|
|
|
""" |
|
|
|
Rejects an out-of-band invite we have received from a remote server |
|
|
|
Rejects an out-of-band invite we have received from a remote server |
|
|
|
|
|
|
|
|
|
|
@ -268,7 +268,7 @@ class RoomMemberHandler(object): |
|
|
|
ratelimit: bool = True, |
|
|
|
ratelimit: bool = True, |
|
|
|
content: Optional[dict] = None, |
|
|
|
content: Optional[dict] = None, |
|
|
|
require_consent: bool = True, |
|
|
|
require_consent: bool = True, |
|
|
|
) -> Tuple[Optional[str], int]: |
|
|
|
) -> Tuple[str, int]: |
|
|
|
key = (room_id,) |
|
|
|
key = (room_id,) |
|
|
|
|
|
|
|
|
|
|
|
with (await self.member_linearizer.queue(key)): |
|
|
|
with (await self.member_linearizer.queue(key)): |
|
|
@ -299,7 +299,7 @@ class RoomMemberHandler(object): |
|
|
|
ratelimit: bool = True, |
|
|
|
ratelimit: bool = True, |
|
|
|
content: Optional[dict] = None, |
|
|
|
content: Optional[dict] = None, |
|
|
|
require_consent: bool = True, |
|
|
|
require_consent: bool = True, |
|
|
|
) -> Tuple[Optional[str], int]: |
|
|
|
) -> Tuple[str, int]: |
|
|
|
content_specified = bool(content) |
|
|
|
content_specified = bool(content) |
|
|
|
if content is None: |
|
|
|
if content is None: |
|
|
|
content = {} |
|
|
|
content = {} |
|
|
@ -1006,7 +1006,7 @@ class RoomMemberMasterHandler(RoomMemberHandler): |
|
|
|
txn_id: Optional[str], |
|
|
|
txn_id: Optional[str], |
|
|
|
requester: Requester, |
|
|
|
requester: Requester, |
|
|
|
content: JsonDict, |
|
|
|
content: JsonDict, |
|
|
|
) -> Tuple[Optional[str], int]: |
|
|
|
) -> Tuple[str, int]: |
|
|
|
""" |
|
|
|
""" |
|
|
|
Rejects an out-of-band invite received from a remote user |
|
|
|
Rejects an out-of-band invite received from a remote user |
|
|
|
|
|
|
|
|
|
|
|