mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Clear sender certificate on E164 change
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user