Commit c7b90085 authored by JC Brand's avatar JC Brand

Bugfix. use !isBefore instead of isAfter

moment.js is accurate to the second, instead of milliseconds. This causes
timing errors while testing.
parent b307d517
......@@ -978,7 +978,7 @@
'extra_classes': msg_dict.delayed && 'delayed' || ''
});
$content.append($(message).children('.chat-message-content').first().text(text).addHyperlinks().addEmoticons().parent());
if (this.model.get('minimized') && (msg_time.isAfter(this.model.get('time_minimized')))) {
if (this.model.get('minimized') && (!msg_time.isBefore(this.model.get('time_minimized')))) {
this.updateUnreadMessagesCounter();
}
this.scrollDown();
......
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