From cf6544c0282fd210bc3538c9732b88e39b0ab312 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Mon, 4 Jul 2022 20:19:33 +0100 Subject: [PATCH] Clarify that /invite will respond with 200 if the user is already invited to the room (#1084) * Clarify that /invite will respond with 200 if the user is already in the room * Create 1084.clarification * Update changelogs/client_server/newsfragments/1084.clarification Co-authored-by: Travis Ralston --- changelogs/client_server/newsfragments/1084.clarification | 1 + data/api/client-server/inviting.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelogs/client_server/newsfragments/1084.clarification diff --git a/changelogs/client_server/newsfragments/1084.clarification b/changelogs/client_server/newsfragments/1084.clarification new file mode 100644 index 00000000..c0d6e0f3 --- /dev/null +++ b/changelogs/client_server/newsfragments/1084.clarification @@ -0,0 +1 @@ +Mention that the `/rooms/{roomId}/invite` endpoint will return a 200 response if the user is already invited to the room. diff --git a/data/api/client-server/inviting.yaml b/data/api/client-server/inviting.yaml index 9beda8a0..c24e5f49 100644 --- a/data/api/client-server/inviting.yaml +++ b/data/api/client-server/inviting.yaml @@ -80,7 +80,7 @@ paths: required: ["user_id"] responses: 200: - description: The user has been invited to join the room. + description: The user has been invited to join the room, or was already invited to the room. examples: application/json: { }