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
4fb99c0c
Commit
4fb99c0c
authored
Oct 19, 2015
by
Javier Mellado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix roster push when new contact is pushed from server and emit rosterPush event
parent
b7ea4c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
converse.js
converse.js
+5
-2
No files found.
converse.js
View file @
4fb99c0c
...
@@ -4362,7 +4362,7 @@
...
@@ -4362,7 +4362,7 @@
*/
*/
var
id
=
iq
.
getAttribute
(
'
id
'
);
var
id
=
iq
.
getAttribute
(
'
id
'
);
var
from
=
iq
.
getAttribute
(
'
from
'
);
var
from
=
iq
.
getAttribute
(
'
from
'
);
if
(
from
&&
from
!==
""
&&
Strophe
.
getNodeFromJid
(
from
)
!=
converse
.
bare_
jid
)
{
if
(
from
&&
from
!==
""
&&
from
!=
converse
.
connection
.
jid
)
{
// Receiving client MUST ignore stanza unless it has no from or from = user's bare JID.
// Receiving client MUST ignore stanza unless it has no from or from = user's bare JID.
converse
.
connection
.
send
(
converse
.
connection
.
send
(
$iq
({
type
:
'
error
'
,
id
:
id
,
from
:
converse
.
connection
.
jid
})
$iq
({
type
:
'
error
'
,
id
:
id
,
from
:
converse
.
connection
.
jid
})
...
@@ -4375,7 +4375,10 @@
...
@@ -4375,7 +4375,10 @@
$
(
iq
).
children
(
'
query
'
).
find
(
'
item
'
).
each
(
function
(
idx
,
item
)
{
$
(
iq
).
children
(
'
query
'
).
find
(
'
item
'
).
each
(
function
(
idx
,
item
)
{
this
.
updateContact
(
item
);
this
.
updateContact
(
item
);
}.
bind
(
this
));
}.
bind
(
this
));
return
true
;
converse
.
emit
(
'
rosterPush
'
,
iq
);
return
true
;
},
},
fetchFromServer
:
function
(
callback
,
errback
)
{
fetchFromServer
:
function
(
callback
,
errback
)
{
...
...
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