Bluesky app fork with some witchin' additions 💫

update `usePostThreadQuery` to check quote query data (#4975)

* update `usePostThreadQuery` to check quote query data

* search notifs before quotes

* oops

authored by hailey.at and committed by

GitHub df5bf28e 92989282

+5 -1
+1 -1
src/state/queries/list-members.ts
··· 75 listItems.push(...res.data.items) 76 hasMore = Boolean(res.data.cursor) 77 cursor = res.data.cursor 78 } 79 - i++ 80 return listItems 81 } 82
··· 75 listItems.push(...res.data.items) 76 hasMore = Boolean(res.data.cursor) 77 cursor = res.data.cursor 78 + i++ 79 } 80 return listItems 81 } 82
+4
src/state/queries/post-thread.ts
··· 13 import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' 14 import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types' 15 import {useAgent} from '#/state/session' 16 import { 17 findAllPostsInQueryData as findAllPostsInSearchQueryData, 18 findAllProfilesInQueryData as findAllProfilesInSearchQueryData, ··· 400 yield postViewToPlaceholderThread(post) 401 } 402 for (let post of findAllPostsInNotifsQueryData(queryClient, uri)) { 403 yield postViewToPlaceholderThread(post) 404 } 405 for (let post of findAllPostsInSearchQueryData(queryClient, uri)) {
··· 13 import {moderatePost_wrapped as moderatePost} from '#/lib/moderatePost_wrapped' 14 import {UsePreferencesQueryResponse} from '#/state/queries/preferences/types' 15 import {useAgent} from '#/state/session' 16 + import {findAllPostsInQueryData as findAllPostsInQuoteQueryData} from 'state/queries/post-quotes' 17 import { 18 findAllPostsInQueryData as findAllPostsInSearchQueryData, 19 findAllProfilesInQueryData as findAllProfilesInSearchQueryData, ··· 401 yield postViewToPlaceholderThread(post) 402 } 403 for (let post of findAllPostsInNotifsQueryData(queryClient, uri)) { 404 + yield postViewToPlaceholderThread(post) 405 + } 406 + for (let post of findAllPostsInQuoteQueryData(queryClient, uri)) { 407 yield postViewToPlaceholderThread(post) 408 } 409 for (let post of findAllPostsInSearchQueryData(queryClient, uri)) {