Fix sender check for requesting message resend

This commit is contained in:
AsamK 2022-01-27 22:42:49 +01:00
parent ffaa9d2ed3
commit 3491782912

View file

@ -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