mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-10-27 08:59:55 +00:00
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:
parent
6f2ea80060
commit
3aeaa34baa
@ -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(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user