Secondary device to update device mapping to server after lokiFileServerAPI creation

pull/543/head
sachaaaaa 6 years ago
parent 73d90a5277
commit cbee5a884c

@ -255,6 +255,10 @@
window.lokiP2pAPI.on('online', ConversationController._handleOnline);
window.lokiP2pAPI.on('offline', ConversationController._handleOffline);
initialisedAPI = true;
if (storage.get('isSecondaryDevice')) {
window.lokiFileServerAPI.updateOurDeviceMapping();
}
};
function mapOldThemeToNew(theme) {

@ -146,7 +146,6 @@
},
async onSecondaryDeviceRegistered() {
clearInterval(this.pairingInterval);
await lokiFileServerAPI.updateOurDeviceMapping();
// Ensure the left menu is updated
Whisper.events.trigger('userChanged', { isSecondaryDevice: true });
// will re-run the background initialisation

Loading…
Cancel
Save