Optimistic WIP
This commit is contained in:
@@ -412,6 +412,10 @@ export const ComposePost = ({
|
||||
if (res.data.thread.length !== thread.posts.length) {
|
||||
throw new Error(`Not ready`)
|
||||
}
|
||||
const anchor = res.data.thread.at(0)
|
||||
if (!AppBskyFeedDefs.isThreadItemPost(anchor)) {
|
||||
throw new Error(`Not ready`)
|
||||
}
|
||||
return res.data.thread
|
||||
}, 1e3)
|
||||
}
|
||||
|
||||
@@ -152,6 +152,7 @@ export function Inner({uri}: {uri: string | undefined}) {
|
||||
post: AppBskyFeedDefs.ThreadItemPost,
|
||||
}) => (_: any, posts: AppBskyFeedDefs.ThreadItemPost[]) => {
|
||||
if (posts.length) {
|
||||
// TODO get parent and update reply count?
|
||||
insertReplies(post.uri, posts)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user