fix(matrix): accept repeat invites before provisioning
This commit is contained in:
parent
37643a9695
commit
8efc91b02b
2 changed files with 4 additions and 2 deletions
|
|
@ -20,12 +20,12 @@ async def handle_invite(client: Any, room: Any, event: Any, platform, store, aut
|
|||
matrix_user_id = getattr(event, "sender", "")
|
||||
display_name = getattr(room, "display_name", None) or matrix_user_id
|
||||
|
||||
await client.join(room.room_id)
|
||||
|
||||
existing = await get_user_meta(store, matrix_user_id)
|
||||
if existing and existing.get("space_id"):
|
||||
return
|
||||
|
||||
await client.join(room.room_id)
|
||||
|
||||
user = await platform.get_or_create_user(
|
||||
external_id=matrix_user_id,
|
||||
platform="matrix",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue