about summary refs log tree commit diff
path: root/src/state/queries/threadgate/util.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2024-08-23 14:35:48 -0500
committerGitHub <noreply@github.com>2024-08-23 12:35:48 -0700
commit425dd5f27feade1abff7a8e882929ca112376210 (patch)
tree4a279fe3f60b65a6f5c9774adb6e4d36ba1b046f /src/state/queries/threadgate/util.ts
parent5ec8761b294b6a650af9ee286df6864d6fc4f25d (diff)
downloadvoidsky-425dd5f27feade1abff7a8e882929ca112376210.tar.zst
Optimistic hidden replies (#4977)
Diffstat (limited to 'src/state/queries/threadgate/util.ts')
-rw-r--r--src/state/queries/threadgate/util.ts20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/state/queries/threadgate/util.ts b/src/state/queries/threadgate/util.ts
index 35c33875e..09ae0a0c1 100644
--- a/src/state/queries/threadgate/util.ts
+++ b/src/state/queries/threadgate/util.ts
@@ -139,23 +139,3 @@ export function createThreadgateRecord(
     hiddenReplies: threadgate.hiddenReplies || [],
   }
 }
-
-export function createTempThreadgateView({
-  postUri,
-  hiddenReplies,
-}: Pick<AppBskyFeedThreadgate.Record, 'hiddenReplies'> & {
-  postUri: string
-}): AppBskyFeedDefs.ThreadgateView {
-  const record: AppBskyFeedThreadgate.Record = {
-    $type: 'app.bsky.feed.threadgate',
-    post: postUri,
-    allow: undefined,
-    hiddenReplies,
-    createdAt: new Date().toISOString(),
-  }
-  return {
-    $type: 'app.bsky.feed.defs#threadgateView',
-    uri: postUri,
-    record,
-  }
-}