Fix marking sender as needs pni signature

This commit is contained in:
AsamK 2026-07-30 22:02:28 +02:00
parent d29f6c1641
commit 6fa1d1bf90
2 changed files with 3 additions and 2 deletions

View File

@ -340,9 +340,9 @@ public final class IncomingMessageHandler {
}
if (account.getPni().equals(destination.serviceId)) {
account.getRecipientStore().markNeedsPniSignature(destination.recipientId, true);
account.getRecipientStore().markNeedsPniSignature(sender, true);
} else if (account.getAci().equals(destination.serviceId)) {
account.getRecipientStore().markNeedsPniSignature(destination.recipientId, false);
account.getRecipientStore().markNeedsPniSignature(sender, false);
}
if (content.getReceiptMessage().isPresent()) {

View File

@ -213,6 +213,7 @@ run_main -a "$NUMBER_2" send "$NUMBER_1" -m hi
run_main -a "$NUMBER_2" send "$NUMBER_1" -m hii
run_main -a "$NUMBER_1" updateAccount --discoverable-by-number=false
run_main -a "$NUMBER_1" receive
run_main -a "$NUMBER_1" send "$NUMBER_2" -m hi
run_main -a "$NUMBER_2" receive
run_main -a "$NUMBER_2" send "$NUMBER_1" -m hi
run_main -a "$NUMBER_2" send "$NUMBER_1" -m hii