Download attachments from synced message edits (#2143)

* Initial plan

* Handle attachments in synced edits

Co-authored-by: AsamK <2340865+AsamK@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: AsamK <2340865+AsamK@users.noreply.github.com>
This commit is contained in:
Copilot 2026-10-09 17:00:13 +02:00 committed by GitHub
parent 6f2ea80060
commit 3aeaa34baa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -585,6 +585,21 @@ public final class IncomingMessageHandler {
actions.addAll(dataResults.first());
longTexts.putAll(dataResults.second());
}
if (message.getEditMessage().isPresent()) {
final var dataResults = handleSignalServiceDataMessage(message.getEditMessage()
.get()
.getDataMessage(),
true,
sender,
destination == null
? null
: new DeviceAddress(account.getRecipientResolver().resolveRecipient(destination),
destination.getServiceId(),
0),
receiveConfig);
actions.addAll(dataResults.first());
longTexts.putAll(dataResults.second());
}
if (message.getStoryMessage().isPresent()) {
actions.addAll(handleSignalServiceStoryMessage(message.getStoryMessage().get(),
sender.recipientId(),