Clear sender certificate on E164 change
This commit is contained in:
parent
d88128b146
commit
c7b7a355ba
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ export class User {
|
|||
|
||||
window.log.info('storage.user: number changed');
|
||||
|
||||
await this.storage.put('number_id', `${number}.${deviceId}`);
|
||||
await Promise.all([
|
||||
this.storage.put('number_id', `${number}.${deviceId}`),
|
||||
this.storage.remove('senderCertificate'),
|
||||
]);
|
||||
|
||||
// Notify redux about phone number change
|
||||
window.Whisper.events.trigger('userChanged');
|
||||
|
|
Loading…
Reference in a new issue