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
a4475a54
Commit
a4475a54
authored
Apr 06, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop using strophe.roster in unsubscribe method.
parent
7f8da771
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
converse.js
converse.js
+9
-10
No files found.
converse.js
View file @
a4475a54
...
...
@@ -3538,6 +3538,7 @@
.
c
(
'
query
'
,
{
xmlns
:
Strophe
.
NS
.
ROSTER
})
.
c
(
'
item
'
,
{
jid
:
this
.
get
(
'
jid
'
),
subscription
:
"
remove
"
});
converse
.
connection
.
sendIQ
(
iq
,
callback
,
callback
);
return
this
;
},
showInRoster
:
function
()
{
...
...
@@ -3833,17 +3834,15 @@
unsubscribe
:
function
(
jid
)
{
/* Upon receiving the presence stanza of type "unsubscribed",
* the user SHOULD acknowledge receipt of that subscription state
* notification by sending a presence stanza of type "unsubscribe"
* this step lets the user's server know that it MUST no longer
* send notification of the subscription state change to the user.
*/
* the user SHOULD acknowledge receipt of that subscription state
* notification by sending a presence stanza of type "unsubscribe"
* this step lets the user's server know that it MUST no longer
* send notification of the subscription state change to the user.
* Parameters:
* (String) jid - The Jabber ID of the user who is unsubscribing
*/
converse
.
xmppstatus
.
sendPresence
(
'
unsubscribe
'
);
if
(
converse
.
connection
.
roster
.
findItem
(
jid
))
{
converse
.
connection
.
roster
.
remove
(
jid
,
function
(
iq
)
{
converse
.
rosterview
.
model
.
remove
(
jid
);
});
}
this
.
get
(
bare_jid
).
destroy
();
// Will cause removeFromRoster to be called.
},
getNumOnlineContacts
:
function
()
{
...
...
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