Skip to content

Commit

Permalink
feat (Conversation/InjectMessage): Remove CACORE-2213 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Sep 26, 2024
1 parent 6d082d7 commit e429173
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ static class Builder<B extends Builder<B>> extends InjectMessageRequestBaseImpl.
public B setBody(ConversationMessageBody body) {
if (body instanceof AppMessage) {
this.appMessage = OptionalValue.of((AppMessage<?>) body);
// TODO: CACORE-2213 workaround
this.contactMessage = OptionalValue.of(null);
} else if (body instanceof ContactMessage) {
// TODO: CACORE-2213 workaround
this.appMessage = OptionalValue.of(null);
this.contactMessage = OptionalValue.of((ContactMessage<?>) body);
} else {
throw new IllegalStateException("Unexpected value: " + body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
"picture_url": "picture_url value"
}
},
"contact_message": null,
"accept_time": "2024-08-14T14:03:20.786662Z",
"channel_identity": {
"app_id": "an app id",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"app_message": null,
"contact_message": {
"text_message": {
"text": "This is a text message."
Expand Down

0 comments on commit e429173

Please sign in to comment.