Add PWI opt-out toggle (#2122)

* Add PWI opt-out toggle

* Bump @atproto/api@0.7.0

* Tweak copy

* Bump lockfile

* Fix layout on ios

* Tweak copy more

* Fix types

* Tweak copy some more
This commit is contained in:
Paul Frazee 2023-12-07 10:32:55 -08:00 committed by GitHub
parent 261a935747
commit 17c27581b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 821 additions and 460 deletions

View file

@ -34,7 +34,6 @@ export type ThreadPost = {
record: AppBskyFeedPost.Record
parent?: ThreadNode
replies?: ThreadNode[]
viewer?: AppBskyFeedDefs.ViewerThreadState
ctx: ThreadCtx
}
@ -188,7 +187,6 @@ function responseToThreadNodes(
// do not show blocked posts in replies
.filter(node => node.type !== 'blocked')
: undefined,
viewer: node.viewer,
ctx: {
depth,
isHighlightedPost: depth === 0,
@ -276,7 +274,6 @@ function threadNodeToPlaceholderThread(
record: node.record,
parent: undefined,
replies: undefined,
viewer: node.viewer,
ctx: {
depth: 0,
isHighlightedPost: true,
@ -300,7 +297,6 @@ function postViewToPlaceholderThread(
record: post.record as AppBskyFeedPost.Record, // validated in notifs
parent: undefined,
replies: undefined,
viewer: post.viewer,
ctx: {
depth: 0,
isHighlightedPost: true,
@ -331,7 +327,6 @@ function embedViewRecordToPlaceholderThread(
record: record.value as AppBskyFeedPost.Record, // validated in getEmbeddedPost
parent: undefined,
replies: undefined,
viewer: undefined, // not available
ctx: {
depth: 0,
isHighlightedPost: true,