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

Loading…
Cancel
Save