Commit c0ef008c authored by JC Brand's avatar JC Brand

converse-bookmarks: Call `_converse.Collection.prototype.clearSession`

parent b176161e
...@@ -276,8 +276,7 @@ converse.plugins.add('converse-bookmarks', { ...@@ -276,8 +276,7 @@ converse.plugins.add('converse-bookmarks', {
_converse.api.listen.on('clearSession', () => { _converse.api.listen.on('clearSession', () => {
if (_converse.bookmarks !== undefined) { if (_converse.bookmarks !== undefined) {
_converse.bookmarks.reset(); _converse.bookmarks.clearSession();
_converse.bookmarks.browserStorage._clear();
window.sessionStorage.removeItem(_converse.bookmarks.fetched_flag); window.sessionStorage.removeItem(_converse.bookmarks.fetched_flag);
} }
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment