mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Do not send message resend request to own device
This commit is contained in:
parent
7c9fd9d0fb
commit
1a81bbecbb
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ public final class IncomingMessageHandler {
|
|||
final var sender = account.getRecipientStore().resolveRecipient(e.getSender());
|
||||
final var senderProfile = profileProvider.getProfile(sender);
|
||||
final var selfProfile = profileProvider.getProfile(account.getSelfRecipientId());
|
||||
if (senderProfile != null
|
||||
if (e.getSenderDevice() != account.getDeviceId()
|
||||
&& senderProfile != null
|
||||
&& senderProfile.getCapabilities().contains(Profile.Capability.senderKey)
|
||||
&& selfProfile != null
|
||||
&& selfProfile.getCapabilities().contains(Profile.Capability.senderKey)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue