|
|
@ -779,7 +779,7 @@ class RoomCreationHandler: |
|
|
|
for invite_3pid in invite_3pid_list: |
|
|
|
for invite_3pid in invite_3pid_list: |
|
|
|
if not all( |
|
|
|
if not all( |
|
|
|
key in invite_3pid |
|
|
|
key in invite_3pid |
|
|
|
for key in ("medium", "address", "id_server", "id_access_token") |
|
|
|
for key in ("medium", "address", "id_server") # watcha+ for key in ("medium", "address", "id_server", "id_access_token") |
|
|
|
): |
|
|
|
): |
|
|
|
raise SynapseError( |
|
|
|
raise SynapseError( |
|
|
|
HTTPStatus.BAD_REQUEST, |
|
|
|
HTTPStatus.BAD_REQUEST, |
|
|
@ -994,7 +994,10 @@ class RoomCreationHandler: |
|
|
|
|
|
|
|
|
|
|
|
for invite_3pid in invite_3pid_list: |
|
|
|
for invite_3pid in invite_3pid_list: |
|
|
|
id_server = invite_3pid["id_server"] |
|
|
|
id_server = invite_3pid["id_server"] |
|
|
|
|
|
|
|
'''watcha! |
|
|
|
id_access_token = invite_3pid["id_access_token"] |
|
|
|
id_access_token = invite_3pid["id_access_token"] |
|
|
|
|
|
|
|
!watcha''' |
|
|
|
|
|
|
|
id_access_token = invite_3pid.get("id_access_token") # watcha+ |
|
|
|
address = invite_3pid["address"] |
|
|
|
address = invite_3pid["address"] |
|
|
|
medium = invite_3pid["medium"] |
|
|
|
medium = invite_3pid["medium"] |
|
|
|
# Note that do_3pid_invite can raise a ShadowBanError, but this was |
|
|
|
# Note that do_3pid_invite can raise a ShadowBanError, but this was |
|
|
|