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
3c182b5a
Commit
3c182b5a
authored
Mar 03, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Server field in `Rooms` tab showed MUC supporting clients
parent
c4c154cf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
CHANGES.md
CHANGES.md
+1
-0
src/converse-disco.js
src/converse-disco.js
+2
-1
src/converse-muc.js
src/converse-muc.js
+10
-7
No files found.
CHANGES.md
View file @
3c182b5a
...
...
@@ -7,6 +7,7 @@
### Bugfixes
-
Server field in
`Rooms`
tab showed MUC supporting clients instead of only components.
-
Avatars weren't being shown.
-
Bookmarks list and open rooms list weren't recreated after logging in for a 2nd time (without reloading the browser).
-
#1022 Status message not sent out on subsequent presences
...
...
src/converse-disco.js
View file @
3c182b5a
...
...
@@ -55,7 +55,7 @@
this
.
features
.
browserStorage
=
new
Backbone
.
BrowserStorage
[
_converse
.
storage
](
b64_sha1
(
`converse.features-
${
this
.
get
(
'
jid
'
)}
`
)
);
this
.
features
.
on
(
'
add
'
,
this
.
onFeatureAdded
);
this
.
features
.
on
(
'
add
'
,
this
.
onFeatureAdded
,
this
);
this
.
identities
=
new
Backbone
.
Collection
();
this
.
identities
.
browserStorage
=
new
Backbone
.
BrowserStorage
[
_converse
.
storage
](
...
...
@@ -118,6 +118,7 @@
},
onFeatureAdded
(
feature
)
{
feature
.
entity
=
this
;
_converse
.
emit
(
'
serviceDiscovered
'
,
feature
);
},
...
...
src/converse-muc.js
View file @
3c182b5a
...
...
@@ -46,7 +46,7 @@
u
,
converse
,
emojione
,
f
p
,
f
,
tpl_chatarea
,
tpl_chatroom
,
tpl_chatroom_disconnect
,
...
...
@@ -2534,6 +2534,7 @@
_converse
.
MUCJoinForm
=
Backbone
.
VDOMView
.
extend
({
initialize
()
{
this
.
model
.
on
(
'
change:muc_domain
'
,
this
.
render
,
this
);
},
...
...
@@ -2604,14 +2605,14 @@
renderTab
()
{
const
controlbox
=
_converse
.
chatboxes
.
get
(
'
controlbox
'
);
const
chatrooms
=
f
p
.
filter
(
const
chatrooms
=
f
.
filter
(
_
.
partial
(
u
.
isOfType
,
CHATROOMS_TYPE
),
_converse
.
chatboxes
.
models
);
this
.
tab_el
.
innerHTML
=
tpl_chatrooms_tab
({
'
label_rooms
'
:
__
(
'
Rooms
'
),
'
is_current
'
:
controlbox
.
get
(
'
active-panel
'
)
===
ROOMS_PANEL_ID
,
'
num_unread
'
:
f
p
.
sum
(
fp
.
map
(
fp
.
curry
(
u
.
getAttribute
)(
'
num_unread
'
),
chatrooms
))
'
num_unread
'
:
f
.
sum
(
f
.
map
(
f
.
curry
(
u
.
getAttribute
)(
'
num_unread
'
),
chatrooms
))
});
},
...
...
@@ -3022,11 +3023,13 @@
function
setMUCDomainFromDisco
(
controlboxview
)
{
/* Check whether service discovery for the user's domain
* returned MUC information and use that to automatically
* set the MUC domain for the "Rooms" panel of the controlbox.
*/
* returned MUC information and use that to automatically
* set the MUC domain for the "Rooms" panel of the controlbox.
*/
function
featureAdded
(
feature
)
{
if
((
feature
.
get
(
'
var
'
)
===
Strophe
.
NS
.
MUC
))
{
if
(
feature
.
get
(
'
var
'
)
===
Strophe
.
NS
.
MUC
&&
f
.
includes
(
'
conference
'
,
feature
.
entity
.
identities
.
pluck
(
'
category
'
)))
{
setMUCDomain
(
feature
.
get
(
'
from
'
),
controlboxview
);
}
}
...
...
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