|
@@ -342,15 +342,7 @@
|
|
* are correct, for example that the "type" is set to
|
|
* are correct, for example that the "type" is set to
|
|
* "chatroom".
|
|
* "chatroom".
|
|
*/
|
|
*/
|
|
- settings = _.assign({
|
|
|
|
- 'name': Strophe.unescapeNode(
|
|
|
|
- Strophe.getNodeFromJid(settings.jid)
|
|
|
|
- ),
|
|
|
|
- 'domain': Strophe.getDomainFromJid(settings.jid),
|
|
|
|
- 'type': CHATROOMS_TYPE,
|
|
|
|
- }, settings);
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+ settings.type = CHATROOMS_TYPE
|
|
return _converse.chatboxviews.showChat(settings);
|
|
return _converse.chatboxviews.showChat(settings);
|
|
};
|
|
};
|
|
|
|
|
|
@@ -373,6 +365,7 @@
|
|
|
|
|
|
'affiliation': null,
|
|
'affiliation': null,
|
|
'connection_status': ROOMSTATUS.DISCONNECTED,
|
|
'connection_status': ROOMSTATUS.DISCONNECTED,
|
|
|
|
+ 'name': '',
|
|
'description': '',
|
|
'description': '',
|
|
'features_fetched': false,
|
|
'features_fetched': false,
|
|
'roomconfig': {},
|
|
'roomconfig': {},
|
|
@@ -538,6 +531,7 @@
|
|
*/
|
|
*/
|
|
return tpl_chatroom_head(
|
|
return tpl_chatroom_head(
|
|
_.extend(this.model.toJSON(), {
|
|
_.extend(this.model.toJSON(), {
|
|
|
|
+ Strophe: Strophe,
|
|
info_close: __('Close and leave this room'),
|
|
info_close: __('Close and leave this room'),
|
|
info_configure: __('Configure this room'),
|
|
info_configure: __('Configure this room'),
|
|
description: this.model.get('description') || ''
|
|
description: this.model.get('description') || ''
|
|
@@ -2529,9 +2523,9 @@
|
|
*/
|
|
*/
|
|
const $stanza = $(stanza);
|
|
const $stanza = $(stanza);
|
|
// All MUC features found here: http://xmpp.org/registrar/disco-features.html
|
|
// All MUC features found here: http://xmpp.org/registrar/disco-features.html
|
|
- $(el).find('span.spinner').replaceWith(
|
|
|
|
|
|
+ el.querySelector('span.spinner').outerHTML =
|
|
tpl_room_description({
|
|
tpl_room_description({
|
|
- 'server': Strophe.getDomainFromJid(stanza.getAttribute('from')),
|
|
|
|
|
|
+ 'jid': stanza.getAttribute('from'),
|
|
'desc': $stanza.find('field[var="muc#roominfo_description"] value').text(),
|
|
'desc': $stanza.find('field[var="muc#roominfo_description"] value').text(),
|
|
'occ': $stanza.find('field[var="muc#roominfo_occupants"] value').text(),
|
|
'occ': $stanza.find('field[var="muc#roominfo_occupants"] value').text(),
|
|
'hidden': $stanza.find('feature[var="muc_hidden"]').length,
|
|
'hidden': $stanza.find('feature[var="muc_hidden"]').length,
|
|
@@ -2546,7 +2540,7 @@
|
|
'temporary': $stanza.find('feature[var="muc_temporary"]').length,
|
|
'temporary': $stanza.find('feature[var="muc_temporary"]').length,
|
|
'unmoderated': $stanza.find('feature[var="muc_unmoderated"]').length,
|
|
'unmoderated': $stanza.find('feature[var="muc_unmoderated"]').length,
|
|
'label_desc': __('Description:'),
|
|
'label_desc': __('Description:'),
|
|
- 'label_server': __('Server:'),
|
|
|
|
|
|
+ 'label_jid': __('Room Address (JID):'),
|
|
'label_occ': __('Occupants:'),
|
|
'label_occ': __('Occupants:'),
|
|
'label_features': __('Features:'),
|
|
'label_features': __('Features:'),
|
|
'label_requires_auth': __('Requires authentication'),
|
|
'label_requires_auth': __('Requires authentication'),
|
|
@@ -2561,7 +2555,6 @@
|
|
'label_temp_room': __('Temporary room'),
|
|
'label_temp_room': __('Temporary room'),
|
|
'label_unmoderated': __('Unmoderated')
|
|
'label_unmoderated': __('Unmoderated')
|
|
})
|
|
})
|
|
- );
|
|
|
|
},
|
|
},
|
|
|
|
|
|
toggleRoomInfo (ev) {
|
|
toggleRoomInfo (ev) {
|