فهرست منبع

Bugfix. use !isBefore instead of isAfter

moment.js is accurate to the second, instead of milliseconds. This causes
timing errors while testing.
JC Brand 11 سال پیش
والد
کامیت
c7b900859d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -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();