Fix missing hourglass on some expiring messages
Resolves a race condition between marking messages read and loading/rendering those messages in the frontend. Fixes #942
This commit is contained in:
parent
508c10755b
commit
b5f5c4604c
1 changed files with 3 additions and 0 deletions
|
@ -209,6 +209,9 @@
|
|||
return this.model.fetchContacts().then(function() {
|
||||
return this.model.fetchMessages().then(function() {
|
||||
this.$('.bar-container').hide();
|
||||
this.model.messageCollection.where({unread: 1}).forEach(function(m) {
|
||||
m.fetch();
|
||||
});
|
||||
}.bind(this));
|
||||
}.bind(this));
|
||||
// TODO catch?
|
||||
|
|
Loading…
Reference in a new issue