Răsfoiți Sursa

Expose is_chatroom attribute on chat boxes returned by the API

JC Brand 10 ani în urmă
părinte
comite
f73f61e622
2 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 2 1
      converse.js
  2. 1 0
      docs/CHANGES.rst

+ 2 - 1
converse.js

@@ -5896,14 +5896,15 @@
     var wrappedChatBox = function (chatbox) {
         var view = converse.chatboxviews.get(chatbox.get('jid'));
         return {
-            'open': view.show.bind(view),
             'close': view.close.bind(view),
             'endOTR': chatbox.endOTR.bind(chatbox),
             'focus': view.focus.bind(view),
             'get': chatbox.get.bind(chatbox),
             'initiateOTR': chatbox.initiateOTR.bind(chatbox),
+            'is_chatroom': chatbox.is_chatroom,
             'maximize': chatbox.maximize.bind(chatbox),
             'minimize': chatbox.minimize.bind(chatbox),
+            'open': view.show.bind(view),
             'set': chatbox.set.bind(chatbox)
         };
     };

+ 1 - 0
docs/CHANGES.rst

@@ -31,6 +31,7 @@ Changelog
 * CSS: Fonts Path: editabable $font-path via sass/variables.scss [thierrytiti]
 * Add offline pretty status to enable translation [thierrytiti]
 * With keepalive, don't send out a presence stanza on each page load [jcbrand]
+* Chat boxes returned by the API now have an ``is_chatroom`` attribute [jcbrand]
 
 0.9.3 (2015-05-01)
 ------------------