wait to delete secondaryDevice conversation after unpairing

pull/1137/head
Audric Ackermann 6 years ago
parent 64fca28aa8
commit d695c57805
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1431,9 +1431,11 @@
// TODO: we should ensure the message was sent and retry automatically if not
await libloki.api.sendUnpairingMessageToSecondary(pubKey);
// Remove all traces of the device
ConversationController.deleteContact(pubKey);
Whisper.events.trigger('refreshLinkedDeviceList');
callback();
setTimeout(() => {
ConversationController.deleteContact(pubKey);
Whisper.events.trigger('refreshLinkedDeviceList');
callback();
}, 1000);
});
}

Loading…
Cancel
Save