From cdc21739b3afab358254259ca8d22890adf4d57c Mon Sep 17 00:00:00 2001 From: Hailey Date: Thu, 22 Aug 2024 10:49:26 -0700 Subject: [PATCH] update `usePostThreadQuery` to check quote query data --- src/state/queries/post-thread.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/queries/post-thread.ts b/src/state/queries/post-thread.ts index 3370c36174..92a26f985a 100644 --- a/src/state/queries/post-thread.ts +++ b/src/state/queries/post-thread.ts @@ -13,6 +13,7 @@ import {QueryClient, useQuery, useQueryClient} from '@tanstack/react-query' import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types' import {useAgent} from '#/state/session' +import {findAllPostsInQueryData as findAllPostsInQuoteQueryData} from 'state/queries/post-quotes' import { findAllPostsInQueryData as findAllPostsInSearchQueryData, findAllProfilesInQueryData as findAllProfilesInSearchQueryData, @@ -399,6 +400,9 @@ export function* findAllPostsInQueryData( for (let post of findAllPostsInFeedQueryData(queryClient, uri)) { yield postViewToPlaceholderThread(post) } + for (let post of findAllPostsInQuoteQueryData(queryClient, uri)) { + yield postViewToPlaceholderThread(post) + } for (let post of findAllPostsInNotifsQueryData(queryClient, uri)) { yield postViewToPlaceholderThread(post) }