Fix lifecycle to reset things before it starts them

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-05-22 21:55:43 +01:00
parent 08fadb092c
commit a977b8c4ca
1 changed files with 4 additions and 2 deletions

View File

@ -575,10 +575,12 @@ async function startMatrixClient(startSyncing=true) {
// to work). // to work).
dis.dispatch({action: 'will_start_client'}, true); dis.dispatch({action: 'will_start_client'}, true);
// reset things first just in case
TypingStore.sharedInstance().reset();
ToastStore.sharedInstance().reset();
Notifier.start(); Notifier.start();
UserActivity.sharedInstance().start(); UserActivity.sharedInstance().start();
TypingStore.sharedInstance().reset(); // just in case
ToastStore.sharedInstance().reset();
DMRoomMap.makeShared().start(); DMRoomMap.makeShared().start();
IntegrationManagers.sharedInstance().startWatching(); IntegrationManagers.sharedInstance().startWatching();
ActiveWidgetStore.start(); ActiveWidgetStore.start();