浏览代码

Bugfix. First render before fetching msgs. Fixes #191

JC Brand 11 年之前
父节点
当前提交
66e45f91e9
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 2
      converse.js
  2. 1 0
      docs/CHANGES.rst

+ 1 - 2
converse.js

@@ -915,8 +915,7 @@
 
                 this.updateVCard();
                 this.$el.insertAfter(converse.chatboxviews.get("controlbox").$el);
-                this.model.messages.fetch({add: true});
-                this.render();
+                this.render().model.messages.fetch({add: true});
                 if (this.model.get('minimized')) {
                     this.hide();
                 } else {

+ 1 - 0
docs/CHANGES.rst

@@ -25,6 +25,7 @@ Changelog
 * #132 Support for `XEP-0280: Message Carbons <https://xmpp.org/extensions/xep-0280.html'>`_.
   Configured via `enable_message_carbons <https://conversejs.org/docs/html/index.html#enable_message_carbons>`_ [hejazee]
 * #176 Add support for caching in sessionStorage as opposed to localStorage. [jcbrand]
+* #191 No messages history [heban]
 * #192 Error: xhr_user_search_url is not defined. [jcbrand]
 
 0.7.4 (2014-03-05)