Expose is_chatroom attribute on chat boxes returned by the API

This commit is contained in:
JC Brand 2015-06-27 08:43:26 +02:00
parent 0426f47941
commit f73f61e622
2 changed files with 3 additions and 1 deletions

View File

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

View File

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