mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-10-06 15:55:19 +01:00
Be more lenient to misplaced pni in conversations
This commit is contained in:
1 parent
54b5f8a393
commit
8d8e0329cf
1 file changed
+4
-2
@@ -1032,11 +1032,13 @@ export class BackupExportStream extends Readable {
|
||||
|
||||
const { nicknameGivenName, nicknameFamilyName, note } = convo;
|
||||
|
||||
const maybePni = convo.pni ?? convo.serviceId;
|
||||
|
||||
const aci = isAciString(convo.serviceId)
|
||||
? Aci.parseFromServiceIdString(convo.serviceId).getRawUuidBytes()
|
||||
: null;
|
||||
const pni = isPniString(convo.pni)
|
||||
? Pni.parseFromServiceIdString(convo.pni).getRawUuidBytes()
|
||||
const pni = isPniString(maybePni)
|
||||
? Pni.parseFromServiceIdString(maybePni).getRawUuidBytes()
|
||||
: null;
|
||||
const e164 = convo.e164 ? Long.fromString(convo.e164) : null;
|
||||
|
||||
|
||||
Reference in new issue
Block a user