Преглед на файлове

Merge pull request #458 from 1st8/master

Fix no messages being shown in chat
JC Brand преди 10 години
родител
ревизия
c9b0d4c86a
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -1384,7 +1384,7 @@
                 var $first_msg = this.$content.children('.chat-message:first'),
                     first_msg_date = $first_msg.data('isodate'),
                     last_msg_date, current_msg_date, day_date, $msgs, msg_dates, idx;
-                if (typeof first_msg_date === "undefined") {
+                if (!first_msg_date) {
                     this.appendMessage(attrs);
                     return;
                 }