Update a specific recipient case to merge rather than just steal PNI.

This commit is contained in:
Greyson Parrelli
2024-02-23 14:57:38 -05:00
parent dcd0d433b0
commit 43caaf7efc
2 changed files with 15 additions and 4 deletions

View File

@@ -788,6 +788,17 @@ class RecipientTableTest_getAndPossiblyMerge {
expectChangeNumberEvent()
}
test("merge, e164 follows pni+aci") {
given(E164_A, PNI_A, null)
given(null, null, ACI_A)
process(null, PNI_A, ACI_A, pniVerified = true)
expect(E164_A, PNI_A, ACI_A)
expectThreadMergeEvent(E164_A)
expectPniVerified()
}
test("local user, local e164 and aci provided, changeSelf=false, leave e164 alone") {
given(E164_SELF, null, ACI_SELF)
given(null, null, ACI_A)