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
26b45be9
Commit
26b45be9
authored
Feb 06, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the roster when a BOSH session can't be restored
Fixes #555
parent
04978265
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
converse.js
converse.js
+4
-2
docs/CHANGES.md
docs/CHANGES.md
+3
-1
No files found.
converse.js
View file @
26b45be9
...
...
@@ -6209,7 +6209,8 @@
try
{
return
this
.
connection
.
restore
(
this
.
jid
,
this
.
onConnectStatusChanged
);
}
catch
(
e
)
{
converse
.
log
(
"
Could not restore session for jid:
"
+
this
.
jid
+
"
Error message:
"
+
e
.
message
);
this
.
log
(
"
Could not restore session for jid:
"
+
this
.
jid
+
"
Error message:
"
+
e
.
message
);
this
.
clearSession
();
// If there's a roster, we want to clear it (see #555)
}
}
else
{
// Not keepalive
if
(
this
.
jid
&&
this
.
sid
&&
this
.
rid
)
{
...
...
@@ -6241,7 +6242,8 @@
try
{
return
this
.
connection
.
restore
(
undefined
,
this
.
onConnectStatusChanged
);
}
catch
(
e
)
{
converse
.
log
(
"
Could not restore sessions. Error message:
"
+
e
.
message
);
this
.
log
(
"
Could not restore session. Error message:
"
+
e
.
message
);
this
.
clearSession
();
// If there's a roster, we want to clear it (see #555)
}
}
if
(
this
.
auto_login
)
{
...
...
docs/CHANGES.md
View file @
26b45be9
...
...
@@ -16,7 +16,9 @@
See
[
include_offline_state
](
https://conversejs.org/docs/html/configuration.html#include_offline_state
)
for details. [jcbrand]
-
A chatroom invite might come from someone not in your roster list. [ben]
-
#487 Empty the resources array when the resource is null [rlanvin]
-
#559 Optimize auto_reconnect function. [m0cs]
-
#534 Updated Russian translation [LaconicTranslator]
-
#555 The status restored from sessionStorage is never updated [jcbrand]
-
#559 Remove reconnection timer once connected succesfully [m0cs]
## 0.10.0 (2015-11-05)
...
...
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