diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-17 10:11:30 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-17 10:11:30 -0600 |
commit | bf1092ad86ef8e5829db29a17f33380dabab8535 (patch) | |
tree | 5cf0d18a88d7162fcfe258aff89d3d868268d0d9 /src/state/lib/api.ts | |
parent | 5abcc8e336b3af11a6c98d0d9e662415856478a0 (diff) | |
download | voidsky-bf1092ad86ef8e5829db29a17f33380dabab8535.tar.zst |
Remove scenes (#36)
* Remove scenes from the main menu * Remove scenes from the profile view * Remove 'scenes explainer' from onboarding flow * Remove scene-related modals * Remove member/membership code * Remove all scenes-related items from notifications * Remove scene-related code from posts feed * Remove scene-related API helpers * Update tests
Diffstat (limited to 'src/state/lib/api.ts')
-rw-r--r-- | src/state/lib/api.ts | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/state/lib/api.ts b/src/state/lib/api.ts index e701ae6f5..8dc9ce5f5 100644 --- a/src/state/lib/api.ts +++ b/src/state/lib/api.ts @@ -216,54 +216,6 @@ export async function unfollow(store: RootStoreModel, followUri: string) { }) } -export async function inviteToScene( - store: RootStoreModel, - sceneDid: string, - subjectDid: string, - subjectDeclarationCid: string, -): Promise<string> { - const res = await store.api.app.bsky.graph.assertion.create( - { - did: sceneDid, - }, - { - subject: { - did: subjectDid, - declarationCid: subjectDeclarationCid, - }, - assertion: APP_BSKY_GRAPH.AssertMember, - createdAt: new Date().toISOString(), - }, - ) - return res.uri -} - -interface Confirmation { - originator: { - did: string - declarationCid: string - } - assertion: { - uri: string - cid: string - } -} -export async function acceptSceneInvite( - store: RootStoreModel, - details: Confirmation, -): Promise<string> { - const res = await store.api.app.bsky.graph.confirmation.create( - { - did: store.me.did || '', - }, - { - ...details, - createdAt: new Date().toISOString(), - }, - ) - return res.uri -} - interface FetchHandlerResponse { status: number headers: Record<string, string> |