Skip to content

Commit

Permalink
Save quick filter settings when selecting a different filter (mastodo…
Browse files Browse the repository at this point in the history
…n#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.
  • Loading branch information
ClearlyClaire authored and Gargron committed Mar 17, 2019
1 parent e049179 commit 6d43892
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/javascript/mastodon/actions/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
importFetchedStatus,
importFetchedStatuses,
} from './importer';
import { saveSettings } from './settings';
import { defineMessages } from 'react-intl';
import { List as ImmutableList } from 'immutable';
import { unescapeHTML } from '../utils/html';
Expand Down Expand Up @@ -187,5 +188,6 @@ export function setFilter (filterType) {
value: filterType,
});
dispatch(expandNotifications());
dispatch(saveSettings());
};
};

0 comments on commit 6d43892

Please sign in to comment.