Update types
This commit is contained in:
@@ -45,7 +45,7 @@ import {type ImagePickerAsset} from 'expo-image-picker'
|
||||
import {
|
||||
AppBskyFeedDefs,
|
||||
type AppBskyFeedGetPostThread,
|
||||
AppBskyUnspeccedGetPostThreadV2,
|
||||
AppBskyUnspeccedDefs,
|
||||
type BskyAgent,
|
||||
type RichText,
|
||||
} from '@atproto/api'
|
||||
@@ -427,7 +427,7 @@ export const ComposePost = ({
|
||||
}
|
||||
if (
|
||||
!res.data.thread.every(p =>
|
||||
AppBskyUnspeccedGetPostThreadV2.isThreadItemPost(p.value),
|
||||
AppBskyUnspeccedDefs.isThreadItemPost(p.value),
|
||||
)
|
||||
) {
|
||||
throw new Error(`composer: app view returned non-post items`)
|
||||
|
||||
@@ -326,8 +326,6 @@ export function PostThread({uri}: {uri: string | undefined}) {
|
||||
return arr
|
||||
}, [skeleton, deferParents, maxParents, maxReplies])
|
||||
|
||||
console.log({anchorIndex: posts.findIndex(p => p.ctx?.isHighlightedPost)})
|
||||
|
||||
// This is only used on the web to keep the post in view when its parents load.
|
||||
// On native, we rely on `maintainVisibleContentPosition` instead.
|
||||
const didAdjustScrollWeb = useRef<boolean>(false)
|
||||
@@ -423,8 +421,6 @@ export function PostThread({uri}: {uri: string | undefined}) {
|
||||
(skeleton.highlightedPost.ctx.isParentLoading ||
|
||||
Boolean(skeleton?.parents && skeleton.parents.length > 0))
|
||||
|
||||
console.log({hasParents})
|
||||
|
||||
const renderItem = ({item, index}: {item: RowItem; index: number}) => {
|
||||
if (item === REPLY_PROMPT && hasSession) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user