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
b3ed43c4
Commit
b3ed43c4
authored
May 09, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fetch rooms on roster or when leaving a room
Inefficient, causes way too much traffic and takes very long
parent
df7f1ccf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
converse.css
converse.css
+1
-1
converse.js
converse.js
+3
-10
main.js
main.js
+1
-1
No files found.
converse.css
View file @
b3ed43c4
...
...
@@ -8,7 +8,7 @@ img.spinner {
box-shadow
:
none
;
-moz-box-shadow
:
none
;
-webkit-box-shadow
:
none
;
margin
:
5px
;
margin
:
0
;
padding
:
0
5px
0
5px
;
}
...
...
converse.js
View file @
b3ed43c4
...
...
@@ -750,12 +750,14 @@
},
this
));
}
else
{
$available_chatrooms
.
html
(
'
<dt>No rooms on
'
+
this
.
muc_domain
+
'
</dt>
'
);
$
(
'
input#show-rooms
'
).
show
().
siblings
(
'
img.spinner
'
).
remove
();
}
return
true
;
},
this
),
$
.
proxy
(
function
(
iq
)
{
// Failure
var
$available_chatrooms
=
this
.
$el
.
find
(
'
#available-chatrooms
'
);
$available_chatrooms
.
html
(
'
<dt>No rooms on
'
+
this
.
muc_domain
+
'
</dt>
'
);
$
(
'
input#show-rooms
'
).
show
().
siblings
(
'
img.spinner
'
).
remove
();
},
this
));
},
...
...
@@ -985,7 +987,6 @@
$
.
proxy
(
this
.
onChatRoomPresence
,
this
),
$
.
proxy
(
this
.
onChatRoomRoster
,
this
));
this
.
model
.
messages
.
on
(
'
add
'
,
this
.
showMessage
,
this
);
this
.
model
.
on
(
'
destroy
'
,
function
(
model
,
response
,
options
)
{
this
.
$el
.
hide
(
'
fast
'
);
...
...
@@ -1000,12 +1001,7 @@
this
.
render
().
show
().
model
.
messages
.
fetch
({
add
:
true
});
},
onLeave
:
function
()
{
var
controlboxview
=
converse
.
chatboxesview
.
views
.
controlbox
;
if
(
controlboxview
)
{
controlboxview
.
roomspanel
.
trigger
(
'
update-rooms-list
'
);
}
},
onLeave
:
function
()
{},
onChatRoomPresence
:
function
(
presence
,
room
)
{
var
nick
=
room
.
nick
,
...
...
@@ -1113,9 +1109,6 @@
$participant_list
=
this
.
$el
.
find
(
'
.participant-list
'
),
participants
=
[],
i
;
if
(
controlboxview
)
{
controlboxview
.
roomspanel
.
trigger
(
'
update-rooms-list
'
);
}
this
.
$el
.
find
(
'
.participant-list
'
).
empty
();
for
(
i
=
0
;
i
<
roster_size
;
i
++
)
{
participants
.
push
(
'
<li>
'
+
Strophe
.
unescapeNode
(
_
.
keys
(
roster
)[
i
])
+
'
</li>
'
);
...
...
main.js
View file @
b3ed43c4
...
...
@@ -5,6 +5,6 @@ require(["jquery", "converse"], function($, converse) {
prebind
:
false
,
xhr_user_search
:
false
,
auto_subscribe
:
false
,
auto_list_rooms
:
false
auto_list_rooms
:
false
});
});
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