Merge pull request #543 from sachaaaaa/fix_update_mapping_after_init_api

[multi-device] Secondary device to update device mapping to server after lokiFileSer…
pull/548/head
sachaaaaa 6 years ago committed by GitHub
commit 6415e33122
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

@ -5,7 +5,7 @@
i18n,
passwordUtil,
_,
lokiFileServerAPI */
*/
/* eslint-disable more/no-then */
@ -147,7 +147,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