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.
pull/749/head
Scott Nonnenberg 8 years ago committed by GitHub
parent 22ccd46f4c
commit 632c8c063c

@ -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…
Cancel
Save