From df51b486f27f10c72b4e944f4a93ab64c8f8a046 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 2 Jan 2025 17:05:55 -0600 Subject: [PATCH] Migrate to isValidRecord in threadgate/util --- src/state/queries/threadgate/util.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/state/queries/threadgate/util.ts b/src/state/queries/threadgate/util.ts index 09ae0a0c1f..fdaa2671f1 100644 --- a/src/state/queries/threadgate/util.ts +++ b/src/state/queries/threadgate/util.ts @@ -6,9 +6,7 @@ export function threadgateViewToAllowUISetting( threadgateView: AppBskyFeedDefs.ThreadgateView | undefined, ): ThreadgateAllowUISetting[] { const threadgate = - threadgateView && - AppBskyFeedThreadgate.isRecord(threadgateView.record) && - AppBskyFeedThreadgate.validateRecord(threadgateView.record).success + threadgateView && AppBskyFeedThreadgate.isValidRecord(threadgateView.record) ? threadgateView.record : undefined return threadgateRecordToAllowUISetting(threadgate)