From 3491782912978f17a13c30b713a2d5f34e6a8a39 Mon Sep 17 00:00:00 2001 From: AsamK Date: Thu, 27 Jan 2022 22:42:49 +0100 Subject: [PATCH] Fix sender check for requesting message resend --- .../org/asamk/signal/manager/helper/IncomingMessageHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java b/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java index d7a50971..251dfde3 100644 --- a/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java +++ b/lib/src/main/java/org/asamk/signal/manager/helper/IncomingMessageHandler.java @@ -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