Skip to content

Commit

Permalink
Optional deleting last message
Browse files Browse the repository at this point in the history
  • Loading branch information
isKONSTANTIN committed Jul 26, 2024
1 parent e5c2854 commit 0daf9d7
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ public void start() {

if (needNewMessage) {
try {
abstractChatHandler.deleteMessage(abstractChatHandler.getLastSentMessage().messageId()).get();
abstractChatHandler.deleteMessage(abstractChatHandler.getLastSentMessageId()).get();
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
throw new RuntimeException(e);
}
}

Expand Down

0 comments on commit 0daf9d7

Please sign in to comment.