pull/933/head
Ryan Tharp 5 years ago
parent 55c1410793
commit c6b6ab8be6

@ -259,6 +259,7 @@
window.initialisedAPI = true; window.initialisedAPI = true;
if (storage.get('isSecondaryDevice')) { if (storage.get('isSecondaryDevice')) {
window.log.info('Initialising as a secondary device');
window.lokiFileServerAPI.updateOurDeviceMapping(); window.lokiFileServerAPI.updateOurDeviceMapping();
} }
}; };
@ -1365,6 +1366,7 @@
}); });
Whisper.events.on('deviceUnpairingRequested', async pubKey => { Whisper.events.on('deviceUnpairingRequested', async pubKey => {
window.log.info('unpairing device...');
await libloki.storage.removePairingAuthorisationForSecondaryPubKey( await libloki.storage.removePairingAuthorisationForSecondaryPubKey(
pubKey pubKey
); );

Loading…
Cancel
Save