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
7c15e2f1
Commit
7c15e2f1
authored
Nov 24, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some initial work on removing jQuery
parent
1476ffeb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/converse-core.js
src/converse-core.js
+3
-2
No files found.
src/converse-core.js
View file @
7c15e2f1
...
...
@@ -1064,7 +1064,7 @@
return
true
;
}
_converse
.
connection
.
send
(
$iq
({
type
:
'
result
'
,
id
:
id
,
from
:
_converse
.
connection
.
jid
}));
// var items = iq.querySelectorAll('query[xmlns="'+Strophe.NS.ROSTER+'"] item');
var
items
=
sizzle
(
'
query[xmlns="
'
+
Strophe
.
NS
.
ROSTER
+
'
"] item
'
,
iq
);
_
.
each
(
items
,
this
.
updateContact
.
bind
(
this
));
_converse
.
emit
(
'
rosterPush
'
,
iq
);
...
...
@@ -1085,6 +1085,7 @@
/* An IQ stanza containing the roster has been received from
* the XMPP server.
*/
// var items = iq.querySelectorAll('query[xmlns="'+Strophe.NS.ROSTER+'"] item');
var
items
=
sizzle
(
'
query[xmlns="
'
+
Strophe
.
NS
.
ROSTER
+
'
"] item
'
,
iq
);
_
.
each
(
items
,
this
.
updateContact
.
bind
(
this
));
_converse
.
emit
(
'
roster
'
,
iq
);
...
...
@@ -1134,7 +1135,7 @@
* Note: this method gets completely overridden by converse-vcard.js
*/
var
bare_jid
=
Strophe
.
getBareJidFromJid
(
presence
.
getAttribute
(
'
from
'
));
var
nick_el
=
presence
.
querySelector
(
'
nick[xmlns=
"
'
+
Strophe
.
NS
.
NICK
+
'
"
]
'
);
var
nick_el
=
presence
.
querySelector
(
'
nick[xmlns=
'
+
Strophe
.
NS
.
NICK
+
'
]
'
);
var
user_data
=
{
jid
:
bare_jid
,
subscription
:
'
none
'
,
...
...
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