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
a3bc7a18
Commit
a3bc7a18
authored
Nov 30, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #735. Querying by attribute returns empty list
parent
48791fa5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
docs/CHANGES.md
docs/CHANGES.md
+4
-0
src/converse-muc.js
src/converse-muc.js
+5
-1
No files found.
docs/CHANGES.md
View file @
a3bc7a18
# Changelog
## 2.0.3 (2016-11-30)
-
#735 Room configuration button not visible. [jcbrand]
-
CSS fix for fadeIn animation. [jcbrand]
## 2.0.2 (2016-11-30)
-
#721 keepalive not working with anonymous authentication [jcbrand]
-
#723 Bugfix: Arrays in configuration settings were ignored. [jcbrand]
...
...
src/converse-muc.js
View file @
a3bc7a18
...
...
@@ -1138,8 +1138,12 @@
* See: http://xmpp.org/registrar/mucstatus.html
*/
var
from_nick
=
Strophe
.
unescapeNode
(
Strophe
.
getResourceFromJid
(
presence
.
getAttribute
(
'
from
'
)));
// XXX: Unfortunately presence.querySelectorAll('x[xmlns="'+Strophe.NS.MUC_USER+'"]') returns []
var
elements
=
_
.
filter
(
presence
.
querySelectorAll
(
'
x
'
),
function
(
x
)
{
return
x
.
getAttribute
(
'
xmlns
'
)
===
Strophe
.
NS
.
MUC_USER
;
});
var
notifications
=
_
.
map
(
presence
.
querySelectorAll
(
'
x[xmlns="
'
+
Strophe
.
NS
.
MUC_USER
+
'
"]
'
)
,
elements
,
_
.
partial
(
this
.
parseXUserElement
.
bind
(
this
),
_
,
is_self
,
from_nick
)
);
_
.
each
(
notifications
,
this
.
displayNotificationsforUser
.
bind
(
this
));
...
...
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