Commit 8574f669 authored by JC Brand's avatar JC Brand

Don't hardcode roster filter to localStorage

parent e377c9bd
......@@ -810,7 +810,8 @@ converse.plugins.add('converse-rosterview', {
// Create a model on which we can store filter properties
const model = new _converse.RosterFilter();
model.id = `_converse.rosterfilter${_converse.bare_jid}`;
model.browserStorage = new BrowserStorage.local(this.filter.id);
const storage = _converse.config.get('storage');
model.browserStorage = new BrowserStorage[storage](this.filter.id);
this.filter_view = new _converse.RosterFilterView({'model': model});
this.listenTo(this.filter_view.model, 'change', this.updateFilter);
this.filter_view.model.fetch();
......
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