···1414import Status from '../components/status';
1515import htmlContentLength from '../utils/html-content-length';
1616import shortenNumber from '../utils/shorten-number';
1717-import states, { saveStatus } from '../utils/states';
1717+import states, { saveStatus, threadifyStatus } from '../utils/states';
1818import store from '../utils/store';
1919import { getCurrentAccount } from '../utils/store-utils';
2020import useDebouncedCallback from '../utils/useDebouncedCallback';
···160160 console.log({ allStatuses });
161161 setStatuses(allStatuses);
162162 cachedStatusesMap.current[id] = allStatuses;
163163+164164+ // Let's threadify this one
165165+ // Note that all non-hero statuses will trigger saveStatus which will threadify them too
166166+ // By right, at this point, all descendant statuses should be cached
167167+ threadifyStatus(heroStatus);
163168 } catch (e) {
164169 console.error(e);
165170 setUIState('error');
+1-1
src/utils/states.js
···4545 }
4646}
47474848-function threadifyStatus(status) {
4848+export function threadifyStatus(status) {
4949 // Return all statuses in the thread, via inReplyToId, if inReplyToAccountId === account.id
5050 let fetchIndex = 0;
5151 async function traverse(status, index = 0) {