Add post deletion

This commit is contained in:
Paul Frazee 2022-11-16 16:16:43 -06:00
parent bd1a4b198e
commit 41ae87e770
8 changed files with 114 additions and 9 deletions

View file

@ -175,6 +175,13 @@ export class PostThreadViewPostModel implements GetPostThread.Post {
})
}
}
async delete() {
await this.rootStore.api.app.bsky.feed.post.delete({
did: this.author.did,
rkey: new AtUri(this.uri).rkey,
})
}
}
export class PostThreadViewModel {