[Glitch] Add recent searches in web UI
Port 9b2bc3d1de to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { Iterable, fromJS } from 'immutable';
|
||||
|
||||
import { hydrateCompose } from './compose';
|
||||
import { importFetchedAccounts } from './importer';
|
||||
import { hydrateSearch } from './search';
|
||||
import { saveSettings } from './settings';
|
||||
|
||||
export const STORE_HYDRATE = 'STORE_HYDRATE';
|
||||
@@ -34,6 +35,7 @@ export function hydrateStore(rawState) {
|
||||
});
|
||||
|
||||
dispatch(hydrateCompose());
|
||||
dispatch(hydrateSearch());
|
||||
dispatch(importFetchedAccounts(Object.values(rawState.accounts)));
|
||||
dispatch(saveSettings());
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user