Fix handling edit message

This commit is contained in:
AsamK 2023-10-01 17:06:07 +02:00
parent 6b2de3a24d
commit 310aadbdc0
3 changed files with 26 additions and 2 deletions

View file

@ -344,8 +344,10 @@ public final class IncomingMessageHandler {
}
}
if (content.getDataMessage().isPresent()) {
var message = content.getDataMessage().get();
if (content.getDataMessage().isPresent() || content.getEditMessage().isPresent()) {
var message = content.getDataMessage().isPresent()
? content.getDataMessage().get()
: content.getEditMessage().get().getDataMessage();
if (content.isNeedsReceipt()) {
actions.add(new SendReceiptAction(sender,