Skip to content

Commit b4979e0

Browse files
authored
Merge pull request #3881 from vector-im/feature/bma/requiredBody
Send an empty body for POST rooms/{roomId}/receipt/{receiptType}/{eve…
2 parents 8a38f1c + c301bcf commit b4979e0

File tree

2 files changed

+3
-1
lines changed
  • changelog.d
  • matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room

2 files changed

+3
-1
lines changed

changelog.d/3789.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Send an empty body for POST rooms/{roomId}/receipt/{receiptType}/{eventId}

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/RoomAPI.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@ internal interface RoomAPI {
159159
@POST(NetworkConstants.URI_API_PREFIX_PATH_R0 + "rooms/{roomId}/receipt/{receiptType}/{eventId}")
160160
suspend fun sendReceipt(@Path("roomId") roomId: String,
161161
@Path("receiptType") receiptType: String,
162-
@Path("eventId") eventId: String)
162+
@Path("eventId") eventId: String,
163+
@Body body: JsonDict = emptyMap())
163164

164165
/**
165166
* Invite a user to the given room.

0 commit comments

Comments
 (0)