From c301bcf4b68f769bc3f6a00bfde5d32618c23216 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Mon, 23 Aug 2021 16:49:45 +0200 Subject: [PATCH] Send an empty body for POST rooms/{roomId}/receipt/{receiptType}/{eventId} --- changelog.d/3789.bugfix | 1 + .../org/matrix/android/sdk/internal/session/room/RoomAPI.kt | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog.d/3789.bugfix diff --git a/changelog.d/3789.bugfix b/changelog.d/3789.bugfix new file mode 100644 index 0000000000..fc3402e029 --- /dev/null +++ b/changelog.d/3789.bugfix @@ -0,0 +1 @@ +Send an empty body for POST rooms/{roomId}/receipt/{receiptType}/{eventId} \ No newline at end of file diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt index 18ece60629..82cafa9dfc 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt @@ -159,7 +159,8 @@ internal interface RoomAPI { @POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "rooms/{roomId}/receipt/{receiptType}/{eventId}") suspend fun sendReceipt(@Path("roomId") roomId: String, @Path("receiptType") receiptType: String, - @Path("eventId") eventId: String) + @Path("eventId") eventId: String, + @Body body: JsonDict = emptyMap()) /** * Invite a user to the given room.