Also emit change on update apps

When messages are loaded before the apps then the messages doesn't have
an image.
This commit is contained in:
Jannis Mattheis 2018-04-14 22:38:36 +02:00 committed by Jannis Mattheis
parent 74d7c7cc9e
commit eeadd0505c
1 changed files with 4 additions and 1 deletions

View File

@ -10,7 +10,10 @@ class MessageStore extends EventEmitter {
this.reset = false; this.reset = false;
this.resetOnAll = false; this.resetOnAll = false;
this.loading = false; this.loading = false;
AppStore.on('change', this.updateApps); AppStore.on('change', () => {
this.updateApps();
this.emit('change');
});
} }
shouldReset(appId) { shouldReset(appId) {