pull/178/head
DevSymbioide 7 months ago
parent 70c30a3fb0
commit bf149352d6
  1. 2
      synapse/rest/client/room.py

@ -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,

Loading…
Cancel
Save