Clear sender certificate on E164 change

This commit is contained in:
Fedor Indutny 2021-09-02 10:12:11 -07:00 committed by GitHub
parent d88128b146
commit c7b7a355ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');