Skip to content

Commit 6d43892

Browse files
ClearlyClaireGargron
authored andcommitted
Save quick filter settings when selecting a different filter (mastodon#10296)
The active filter is stored in the web app's settings, but no save is explicitly triggered, meaning that it is only saved when a different setting is changed.
1 parent e049179 commit 6d43892

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/javascript/mastodon/actions/notifications.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
importFetchedStatus,
88
importFetchedStatuses,
99
} from './importer';
10+
import { saveSettings } from './settings';
1011
import { defineMessages } from 'react-intl';
1112
import { List as ImmutableList } from 'immutable';
1213
import { unescapeHTML } from '../utils/html';
@@ -187,5 +188,6 @@ export function setFilter (filterType) {
187188
value: filterType,
188189
});
189190
dispatch(expandNotifications());
191+
dispatch(saveSettings());
190192
};
191193
};

0 commit comments

Comments
 (0)