Commit 0f06902b authored by JC Brand's avatar JC Brand

Merge pull request #267 from Deuteu/message-counter-fixes

Fix num_unread*2 on minimized chat
parents 1243d8e3 c9e031e1
......@@ -3043,7 +3043,9 @@
},
initialize: function () {
this.model.messages.on('add', this.updateUnreadMessagesCounter, this);
this.model.messages.on('add', function(msg) {
if (!msg.attributes.composing) {this.updateUnreadMessagesCounter();}
} , this);
this.model.on('showSentOTRMessage', this.updateUnreadMessagesCounter, this);
this.model.on('showReceivedOTRMessage', this.updateUnreadMessagesCounter, this);
this.model.on('change:minimized', this.clearUnreadMessagesCounter, this);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment