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
9afc344b
Commit
9afc344b
authored
May 23, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We no longer clear the whole roster, only presence data
parent
da06a62b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
src/converse-core.js
src/converse-core.js
+1
-1
src/converse-roster.js
src/converse-roster.js
+2
-8
No files found.
src/converse-core.js
View file @
9afc344b
...
...
@@ -945,7 +945,7 @@
_converse
.
log
(
"
Could not restore session for jid:
"
+
this
.
jid
+
"
Error message:
"
+
e
.
message
,
Strophe
.
LogLevel
.
WARN
);
this
.
clearSession
();
//
If there's a roster, we want to clear it
(see #555)
this
.
clearSession
();
//
We want to clear presences
(see #555)
return
false
;
}
};
...
...
src/converse-roster.js
View file @
9afc344b
...
...
@@ -15,12 +15,6 @@
dependencies
:
[
"
converse-vcard
"
],
overrides
:
{
_tearDown
()
{
this
.
__super__
.
_tearDown
.
apply
(
this
,
arguments
);
}
},
initialize
()
{
/* The initialize function gets called as soon as the plugin is
* loaded by converse.js's plugin machinery.
...
...
@@ -766,8 +760,8 @@
});
_converse
.
api
.
listen
.
on
(
'
clearSession
'
,
()
=>
{
if
(
!
_
.
isUndefined
(
this
.
roster
)
)
{
this
.
roster
.
browserStorage
.
_clear
();
if
(
_converse
.
presences
)
{
_converse
.
presences
.
browserStorage
.
_clear
();
}
});
...
...
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