Fix race condition: Pull from database after add to conversation
Also add some console logs to help us determine whether this ever happens to people in the wild. FREEBIE
This commit is contained in:
@@ -303,6 +303,9 @@
|
||||
var read = unreadMessages.map(function(m) {
|
||||
if (this.messageCollection.get(m.id)) {
|
||||
m = this.messageCollection.get(m.id);
|
||||
} else {
|
||||
console.log('Marked a message as read in the database, but ' +
|
||||
'it was not in messageCollection.');
|
||||
}
|
||||
m.markRead();
|
||||
return {
|
||||
|
Reference in New Issue
Block a user