Skip to content

Commit

Permalink
fix: Revoke outbound message
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed Sep 25, 2024
1 parent 06c9aaa commit ecb1b8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

# [8.11.0] - 2024-09-24
# [8.11.0] - 2024-09-25
- Added custom user agent property setting to `HttpConfig`
- Added RCS channel to Messages API
- Added `ackInboundMessage` and `revokeOutboundMessage` methods to `MessagesClient`
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/com/vonage/client/messages/MessagesClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public MessagesClient useRegularEndpoint() {
* Marks an inbound message as "read". Currently, this only applies to WhatsApp messages.
*
* @param messageId UUID of the message to acknowledge.
* @param region (OPTIONAL) The regional server to use for this request.
* @param region The regional server to use for this request. This must match the region of the message.
*
* @throws MessageResponseException If the acknowledgement fails. This could be for the following reasons:
* <ul>
Expand All @@ -142,7 +142,7 @@ public void ackInboundMessage(String messageId, ApiRegion region) throws Message
* Revokes an outbound message. Currently, this only applies to RCS messages.
*
* @param messageId UUID of the message to revoke.
* @param region (OPTIONAL) The regional server to use for this request.
* @param region The regional server to use for this request. This must match the region of the message.
*
* @throws MessageResponseException If the acknowledgement fails. This could be for the following reasons:
* <ul>
Expand All @@ -156,7 +156,7 @@ public void ackInboundMessage(String messageId, ApiRegion region) throws Message
* @since 8.11.0
*/
public void revokeOutboundMessage(String messageId, ApiRegion region) throws MessageResponseException {
updateMessage.execute(new UpdateStatusRequest("revoke", messageId, region));
updateMessage.execute(new UpdateStatusRequest("revoked", messageId, region));
}

/**
Expand Down

0 comments on commit ecb1b8f

Please sign in to comment.