Merge commit '8224178e8ca9746f97ce341179d2c636fa22a082' into glitch-soc/merge-upstream
Conflicts: - `app/models/trends/statuses.rb`: Upstream added a condition where glitch-soc had changes on the same line. Adapted upstream's changes.
This commit is contained in:
commit
06b1f8bd85
5 files changed
+49
-6
No files matched your search
@@ -121,10 +121,15 @@ export const clickSearchResult = createAppAsyncThunk(
|
||||
|
||||
export const forgetSearchResult = createAppAsyncThunk(
|
||||
'search/forgetResult',
|
||||
(q: string, { dispatch, getState }) => {
|
||||
(
|
||||
{ q, type }: { q: string; type?: RecentSearchType },
|
||||
{ dispatch, getState },
|
||||
) => {
|
||||
const previous = getState().search.recent;
|
||||
const me = getState().meta.get('me') as string;
|
||||
const current = previous.filter((result) => result.q !== q);
|
||||
const current = previous.filter(
|
||||
(result) => result.q !== q || result.type !== type,
|
||||
);
|
||||
|
||||
searchHistory.set(me, current);
|
||||
dispatch(updateSearchHistory(current));
|
||||
|
||||
Reference in new issue
Block a user