Don't run integrity checks when unlinked
This commit is contained in:
parent
0f49d0d391
commit
79ed74f7b8
2 changed files with 14 additions and 1 deletions
|
@ -1324,7 +1324,7 @@ export async function startApp(): Promise<void> {
|
|||
});
|
||||
|
||||
window.Whisper.events.on('unlinkAndDisconnect', () => {
|
||||
void unlinkAndDisconnect();
|
||||
drop(unlinkAndDisconnect());
|
||||
});
|
||||
|
||||
window.Whisper.events.on('httpResponse499', () => {
|
||||
|
@ -2928,6 +2928,14 @@ export async function startApp(): Promise<void> {
|
|||
conversation.unset('senderKeyInfo');
|
||||
});
|
||||
|
||||
// We use username for integrity check
|
||||
const ourConversation =
|
||||
window.ConversationController.getOurConversation();
|
||||
if (ourConversation) {
|
||||
ourConversation.unset('username');
|
||||
window.Signal.Data.updateConversation(ourConversation.attributes);
|
||||
}
|
||||
|
||||
// Then make sure outstanding conversation saves are flushed
|
||||
await window.Signal.Data.flushUpdateConversationBatcher();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue