Reset pniCredential when our E164 changes
This commit is contained in:
parent
9e4a0cfd9a
commit
16222f6092
1 changed files with 5 additions and 0 deletions
|
@ -1876,6 +1876,11 @@ export class ConversationModel extends window.Backbone
|
|||
if (e164 !== oldValue) {
|
||||
this.set('e164', e164 || undefined);
|
||||
|
||||
// When our own number has changed - reset pniCredential
|
||||
if (isMe(this.attributes)) {
|
||||
this.set({ pniCredential: null });
|
||||
}
|
||||
|
||||
if (oldValue && e164) {
|
||||
this.addChangeNumberNotification(oldValue, e164);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue