Only start the app up when we've fetched all conversations (#1597)
It's a race condition today, and we don't always win the race.
This commit is contained in:
parent
22ccd46f4c
commit
632c8c063c
1 changed files with 1 additions and 3 deletions
|
@ -63,7 +63,7 @@
|
||||||
}
|
}
|
||||||
first = false;
|
first = false;
|
||||||
|
|
||||||
start();
|
ConversationController.load().then(start, start);
|
||||||
});
|
});
|
||||||
|
|
||||||
Whisper.events.on('shutdown', function() {
|
Whisper.events.on('shutdown', function() {
|
||||||
|
@ -77,8 +77,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
function start() {
|
function start() {
|
||||||
ConversationController.load();
|
|
||||||
|
|
||||||
var currentVersion = window.config.version;
|
var currentVersion = window.config.version;
|
||||||
var lastVersion = storage.get('version');
|
var lastVersion = storage.get('version');
|
||||||
storage.put('version', currentVersion);
|
storage.put('version', currentVersion);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue