Handle optimistic insert in hidden replies

This commit is contained in:
Eric Bailey
2025-06-04 18:55:09 -05:00
parent ab06956137
commit 9b48702df3
5 changed files with 205 additions and 187 deletions
+4 -2
View File
@@ -231,7 +231,8 @@ export function Inner({uri}: {uri: string | undefined}) {
item={item}
threadgateRecord={thread.data.threadgate?.record ?? undefined}
overrides={{
moderation: thread.state.hiddenItemsVisible && item.depth > 0,
moderation:
thread.state.hiddenThreadItemsVisible && item.depth > 0,
}}
onPostSuccess={optimisticOnPostReply}
/>
@@ -242,7 +243,8 @@ export function Inner({uri}: {uri: string | undefined}) {
item={item}
threadgateRecord={thread.data.threadgate?.record ?? undefined}
overrides={{
moderation: thread.state.hiddenItemsVisible && item.depth > 0,
moderation:
thread.state.hiddenThreadItemsVisible && item.depth > 0,
}}
onPostSuccess={optimisticOnPostReply}
/>