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
3f01e94b
Commit
3f01e94b
authored
Nov 15, 2014
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #177 Setting status to 'offline' does nothing in other clients.
parent
efa56ffb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
converse.js
converse.js
+11
-5
docs/CHANGES.rst
docs/CHANGES.rst
+1
-0
No files found.
converse.js
View file @
3f01e94b
...
...
@@ -3509,7 +3509,7 @@
idx
=
_
.
indexOf
(
resources
,
resource
);
if
(
idx
!==
-
1
)
{
resources
.
splice
(
idx
,
1
);
item
.
s
et
({
'
resources
'
:
resources
});
item
.
s
ave
({
'
resources
'
:
resources
});
return
resources
.
length
;
}
}
...
...
@@ -3721,9 +3721,10 @@
this
.
unsubscribe
(
bare_jid
);
}
else
if
(
presence_type
===
'
unavailable
'
)
{
if
(
this
.
removeResource
(
bare_jid
,
resource
)
===
0
)
{
if
(
contact
)
{
contact
.
save
({
'
chat_status
'
:
'
offline
'
});
chat_status
=
"
offline
"
;
}
if
(
contact
&&
chat_status
)
{
contact
.
save
({
'
chat_status
'
:
chat_status
});
}
}
else
if
(
contact
)
{
// presence_type is undefined
...
...
@@ -4322,7 +4323,12 @@
(
type
===
'
unsubscribed
'
)
||
(
type
===
'
subscribe
'
)
||
(
type
===
'
subscribed
'
))
{
presence
=
$pres
({
'
type
'
:
type
});
presence
=
$pres
({
'
type
'
:
type
});
}
else
if
(
type
===
'
offline
'
)
{
presence
=
$pres
({
'
type
'
:
'
unavailable
'
});
if
(
status_message
)
{
presence
.
c
(
'
show
'
).
t
(
type
);
}
}
else
{
if
(
type
===
'
online
'
)
{
presence
=
$pres
();
...
...
docs/CHANGES.rst
View file @
3f01e94b
...
...
@@ -14,6 +14,7 @@ Changelog
any prebind session tokens. [jcbrand]
* #46 Refactor the API and add new methods. [jcbrand]
* #151 Browser locks/freezes with many roster users. [jcbrand]
* #177 Setting status to offline does nothing. [jcbrand]
* #232 Always get full name from model. [jcbrand]
* #237 Unable to create room when ``hide_muc_server`` is ``true``. [jcbrand]
* #238 Rooms are not shown when ``hide_offline_users`` is ``true``. [jcbrand]
...
...
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