Fix sender check for requesting message resend
This commit is contained in:
parent
ffaa9d2ed3
commit
3491782912
@ -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…
x
Reference in New Issue
Block a user