mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-07 16:04:27 +01:00
Fix sender check for requesting message resend
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user