Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
33c2d461
Commit
33c2d461
authored
Aug 29, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused method
parent
f72ace50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
src/converse-chatboxes.js
src/converse-chatboxes.js
+1
-9
src/converse-chatview.js
src/converse-chatview.js
+3
-3
No files found.
src/converse-chatboxes.js
View file @
33c2d461
...
...
@@ -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
()
{
/* Automatically join private chats, based on the
...
...
@@ -903,10 +898,7 @@
_converse
.
emit
(
'
chatBoxesInitialized
'
);
});
_converse
.
api
.
listen
.
on
(
'
clearSession
'
,
()
=>
{
_converse
.
chatboxviews
.
closeAllChatBoxes
();
});
_converse
.
api
.
listen
.
on
(
'
clearSession
'
,
()
=>
_converse
.
chatboxviews
.
closeAllChatBoxes
());
_converse
.
api
.
listen
.
on
(
'
presencesInitialized
'
,
()
=>
_converse
.
chatboxes
.
onConnected
());
/************************ END Event Handlers ************************/
...
...
src/converse-chatview.js
View file @
33c2d461
...
...
@@ -90,13 +90,12 @@
function
onWindowStateChanged
(
data
)
{
if
(
_converse
.
chatboxviews
)
{
_converse
.
chatboxviews
.
each
(
chatboxview
=>
{
chatboxview
.
onWindowStateChanged
(
data
.
state
);
});
_converse
.
chatboxviews
.
each
(
view
=>
view
.
onWindowStateChanged
(
data
.
state
));
}
}
_converse
.
api
.
listen
.
on
(
'
windowStateChanged
'
,
onWindowStateChanged
);
_converse
.
EmojiPicker
=
Backbone
.
Model
.
extend
({
defaults
:
{
'
current_category
'
:
'
people
'
,
...
...
@@ -105,6 +104,7 @@
}
});
_converse
.
EmojiPickerView
=
Backbone
.
VDOMView
.
extend
({
className
:
'
emoji-picker-container
'
,
events
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment