mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-31 11:34:21 +01:00
Do not send message resend request to own device
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user