mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +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 senderProfile = context.getProfileHelper().getRecipientProfile(sender);
|
||||||
final var selfProfile = context.getProfileHelper()
|
final var selfProfile = context.getProfileHelper()
|
||||||
.getRecipientProfile(account.getSelfRecipientId());
|
.getRecipientProfile(account.getSelfRecipientId());
|
||||||
if (e.getSenderDevice() != account.getDeviceId()
|
if ((!sender.equals(account.getSelfRecipientId()) || e.getSenderDevice() != account.getDeviceId())
|
||||||
&& senderProfile != null
|
&& senderProfile != null
|
||||||
&& senderProfile.getCapabilities().contains(Profile.Capability.senderKey)
|
&& senderProfile.getCapabilities().contains(Profile.Capability.senderKey)
|
||||||
&& selfProfile != null
|
&& selfProfile != null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue