diff options
author | Minseo Lee <itoupluk427@gmail.com> | 2024-02-22 09:37:09 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-22 09:37:09 +0900 |
commit | c2d87b807554f11cb99694d4b0ccb86905d468c0 (patch) | |
tree | 7bb610b7f4cea62d8b28625ff9814e38cb12079f /src/state/queries/notifications/feed.ts | |
parent | 6d422bb583bf8946d92fe270b1fe5c760251f0cc (diff) | |
parent | 874489b40227b2ce302e6be840e536e82847842f (diff) | |
download | voidsky-c2d87b807554f11cb99694d4b0ccb86905d468c0.tar.zst |
Merge branch 'bluesky-social:main' into patch-3
Diffstat (limited to 'src/state/queries/notifications/feed.ts')
-rw-r--r-- | src/state/queries/notifications/feed.ts | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/state/queries/notifications/feed.ts b/src/state/queries/notifications/feed.ts index b91db9237..405d054d4 100644 --- a/src/state/queries/notifications/feed.ts +++ b/src/state/queries/notifications/feed.ts @@ -133,23 +133,6 @@ export function useNotificationFeedQuery(opts?: {enabled?: boolean}) { return query } -/** - * This helper is used by the post-thread placeholder function to - * find a post in the query-data cache - */ -export function findPostInQueryData( - queryClient: QueryClient, - uri: string, -): AppBskyFeedDefs.PostView | undefined { - const generator = findAllPostsInQueryData(queryClient, uri) - const result = generator.next() - if (result.done) { - return undefined - } else { - return result.value - } -} - export function* findAllPostsInQueryData( queryClient: QueryClient, uri: string, |