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
d50151c9
Commit
d50151c9
authored
Aug 20, 2020
by
Xavi Ferrer
Committed by
JC Brand
Aug 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix BOSH session restore
parent
8c799efc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/headless/converse-bosh.js
src/headless/converse-bosh.js
+2
-2
No files found.
src/headless/converse-bosh.js
View file @
d50151c9
...
...
@@ -63,7 +63,7 @@ converse.plugins.add('converse-bosh', {
jid
,
data
.
sid
,
data
.
rid
,
_converse
.
onConnectStatusChanged
_converse
.
connection
.
onConnectStatusChanged
);
}
else
{
xhr
.
onerror
();
...
...
@@ -87,7 +87,7 @@ converse.plugins.add('converse-bosh', {
const
jid
=
(
await
initBOSHSession
()).
get
(
'
jid
'
);
if
(
jid
&&
(
_converse
.
connection
.
_proto
instanceof
Strophe
.
Bosh
))
{
try
{
_converse
.
connection
.
restore
(
jid
,
_converse
.
onConnectStatusChanged
);
_converse
.
connection
.
restore
(
jid
,
_converse
.
connection
.
onConnectStatusChanged
);
return
true
;
}
catch
(
e
)
{
!
_converse
.
isTestEnv
()
&&
log
.
warn
(
"
Could not restore session for jid:
"
+
jid
+
"
Error message:
"
+
e
.
message
);
...
...
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