mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Fix sender check for requesting message resend
This commit is contained in:
parent
ffaa9d2ed3
commit
3491782912
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ public final class IncomingMessageHandler {
|
|||
final var senderProfile = context.getProfileHelper().getRecipientProfile(sender);
|
||||
final var selfProfile = context.getProfileHelper()
|
||||
.getRecipientProfile(account.getSelfRecipientId());
|
||||
if (e.getSenderDevice() != account.getDeviceId()
|
||||
if ((!sender.equals(account.getSelfRecipientId()) || e.getSenderDevice() != account.getDeviceId())
|
||||
&& senderProfile != null
|
||||
&& senderProfile.getCapabilities().contains(Profile.Capability.senderKey)
|
||||
&& selfProfile != null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue