Bugfix. fixes #180

This commit is contained in:
JC Brand 2014-07-17 17:44:11 +02:00
parent 66e45f91e9
commit 3423f7bc74
2 changed files with 3 additions and 2 deletions

View File

@ -3779,13 +3779,13 @@
}, },
'getRID': function () { 'getRID': function () {
if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") { if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
return converse.connection._proto.rid; return converse.connection.rid || converse.connection._proto.rid;
} }
return null; return null;
}, },
'getSID': function () { 'getSID': function () {
if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") { if (converse.expose_rid_and_sid && typeof converse.connection !== "undefined") {
return converse.connection._proto.sid; return converse.connection.sid || converse.connection._proto.sid;
} }
return null; return null;
}, },

View File

@ -25,6 +25,7 @@ Changelog
* #132 Support for `XEP-0280: Message Carbons <https://xmpp.org/extensions/xep-0280.html'>`_. * #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] 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] * #176 Add support for caching in sessionStorage as opposed to localStorage. [jcbrand]
* #180 RID and SID undefined [g8g3]
* #191 No messages history [heban] * #191 No messages history [heban]
* #192 Error: xhr_user_search_url is not defined. [jcbrand] * #192 Error: xhr_user_search_url is not defined. [jcbrand]