|
|
@ -1102,7 +1102,7 @@ class RoomMembershipRestServlet(TransactionRestServlet): |
|
|
|
if not requester.is_partner or (requester.is_partner and "id_server" in missing_keys): # watcha+ |
|
|
|
if not requester.is_partner or (requester.is_partner and "id_server" in missing_keys): # watcha+ |
|
|
|
if not all(key in content for key in ("id_server", "id_access_token")): |
|
|
|
if not all(key in content for key in ("id_server", "id_access_token")): |
|
|
|
missing_keys_str = ", ".join(missing_keys) |
|
|
|
missing_keys_str = ", ".join(missing_keys) |
|
|
|
error_message = f"`{missing_keys_str}` {'is' if len(missing_keys) == 1 else 'are'} required when doing 3pid invite. Content: {content}" |
|
|
|
error_message = f"`{missing_keys_str}` {'is' if len(missing_keys) == 1 else 'are'} required when doing 3pid invite. Content: {content}, is_partner : {requester.is_partner}" |
|
|
|
raise SynapseError( |
|
|
|
raise SynapseError( |
|
|
|
HTTPStatus.BAD_REQUEST, |
|
|
|
HTTPStatus.BAD_REQUEST, |
|
|
|
error_message, |
|
|
|
error_message, |
|
|
|