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
f5904806
Commit
f5904806
authored
Dec 22, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify by removing need to override `createItemView`
parent
1178bade
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
14 deletions
+2
-14
CHANGES.md
CHANGES.md
+1
-0
src/converse-rosterview.js
src/converse-rosterview.js
+1
-14
No files found.
CHANGES.md
View file @
f5904806
...
...
@@ -33,6 +33,7 @@
-
Fetch VCard when starting a chat with someone not in the user's roster.
-
Show status messages in an MUC room when a user's role changes.
-
In MUC chat rooms, collapse multiple, consecutive join/leave messages.
-
Performance improvements for rendering private chats, rooms and the contacts roster.
### API changes
-
New API method
`_converse.disco.supports`
to check whether a certain
...
...
src/converse-rosterview.js
View file @
f5904806
...
...
@@ -676,7 +676,7 @@
_converse
.
RosterGroupView
=
Backbone
.
OrderedListView
.
extend
({
tagName
:
'
div
'
,
className
:
'
roster-group
'
,
className
:
'
roster-group
hidden
'
,
events
:
{
"
click a.group-toggle
"
:
"
toggle
"
},
...
...
@@ -716,19 +716,6 @@
return
this
;
},
createItemView
(
contact
)
{
const
contact_view
=
Backbone
.
OrderedListView
.
prototype
.
createItemView
.
apply
(
this
,
arguments
);
if
(
contact_view
.
mayBeShown
())
{
if
(
this
.
model
.
get
(
'
state
'
)
===
_converse
.
CLOSED
)
{
u
.
hideElement
(
contact_view
.
el
);
}
else
{
u
.
showElement
(
contact_view
.
el
);
}
u
.
showElement
(
this
.
el
);
}
},
show
()
{
u
.
showElement
(
this
.
el
);
_
.
each
(
this
.
getAll
(),
(
contact_view
)
=>
{
...
...
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