mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 02:20:39 +00:00
Fix stripping the correct identifiers when merging recipients
This commit is contained in:
parent
ea436ecb64
commit
d8b1a2fffe
1 changed files with 2 additions and 3 deletions
|
@ -34,8 +34,7 @@ public class MergeRecipientHelper {
|
||||||
|
|
||||||
if (recipient.address().aci().isEmpty() || (
|
if (recipient.address().aci().isEmpty() || (
|
||||||
address.aci().isEmpty() && (
|
address.aci().isEmpty() && (
|
||||||
address.pni().isEmpty()
|
address.pni().isEmpty() || recipient.address().pni().equals(address.pni())
|
||||||
|| recipient.address().pni().equals(address.pni())
|
|
||||||
)
|
)
|
||||||
) || recipient.address().aci().equals(address.aci())) {
|
) || recipient.address().aci().equals(address.aci())) {
|
||||||
logger.debug("Got existing recipient {}, updating with high trust address", recipient.id());
|
logger.debug("Got existing recipient {}, updating with high trust address", recipient.id());
|
||||||
|
@ -104,7 +103,7 @@ public class MergeRecipientHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (final var recipient : recipientsToBeStripped) {
|
for (final var recipient : recipientsToBeStripped) {
|
||||||
store.updateRecipientAddress(recipient.id(), recipient.address().removeIdentifiersFrom(address));
|
store.updateRecipientAddress(recipient.id(), recipient.address().removeIdentifiersFrom(finalAddress));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create fixed RecipientIds that won't update its id after merged
|
// Create fixed RecipientIds that won't update its id after merged
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue