Use e164 from PniChangeNumber sync message

This commit is contained in:
Fedor Indutny 2023-05-22 18:37:58 +02:00 committed by GitHub
parent 579329b7bf
commit 759c61d06e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View file

@ -1199,7 +1199,9 @@ export async function mergeAccountRecord(
if (typeof accountE164 === 'string' && accountE164) {
await window.storage.put('accountE164', accountE164);
await window.storage.user.setNumber(accountE164);
if (!RemoteConfig.isEnabled('desktop.pnp')) {
await window.storage.user.setNumber(accountE164);
}
}
if (preferredReactionEmoji.canBeSynced(rawPreferredReactionEmoji)) {