Commit 33c2d461 authored by JC Brand's avatar JC Brand

Remove unused method

parent f72ace50
...@@ -846,11 +846,6 @@ ...@@ -846,11 +846,6 @@
} }
}); });
// TODO: move to converse-chatboxviews.js and use there in the API
_converse.getViewForChatBox = function (chatbox) {
if (!chatbox) { return; }
return _converse.chatboxviews.get(chatbox.get('id'));
};
function autoJoinChats () { function autoJoinChats () {
/* Automatically join private chats, based on the /* Automatically join private chats, based on the
...@@ -903,10 +898,7 @@ ...@@ -903,10 +898,7 @@
_converse.emit('chatBoxesInitialized'); _converse.emit('chatBoxesInitialized');
}); });
_converse.api.listen.on('clearSession', () => { _converse.api.listen.on('clearSession', () => _converse.chatboxviews.closeAllChatBoxes());
_converse.chatboxviews.closeAllChatBoxes();
});
_converse.api.listen.on('presencesInitialized', () => _converse.chatboxes.onConnected()); _converse.api.listen.on('presencesInitialized', () => _converse.chatboxes.onConnected());
/************************ END Event Handlers ************************/ /************************ END Event Handlers ************************/
......
...@@ -90,13 +90,12 @@ ...@@ -90,13 +90,12 @@
function onWindowStateChanged (data) { function onWindowStateChanged (data) {
if (_converse.chatboxviews) { if (_converse.chatboxviews) {
_converse.chatboxviews.each(chatboxview => { _converse.chatboxviews.each(view => view.onWindowStateChanged(data.state));
chatboxview.onWindowStateChanged(data.state);
});
} }
} }
_converse.api.listen.on('windowStateChanged', onWindowStateChanged); _converse.api.listen.on('windowStateChanged', onWindowStateChanged);
_converse.EmojiPicker = Backbone.Model.extend({ _converse.EmojiPicker = Backbone.Model.extend({
defaults: { defaults: {
'current_category': 'people', 'current_category': 'people',
...@@ -105,6 +104,7 @@ ...@@ -105,6 +104,7 @@
} }
}); });
_converse.EmojiPickerView = Backbone.VDOMView.extend({ _converse.EmojiPickerView = Backbone.VDOMView.extend({
className: 'emoji-picker-container', className: 'emoji-picker-container',
events: { events: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment