import { LetterboxLayer } from "https://deno.land/x/earthstar_rich_threads@v2.3.0/mod.ts";
Methods
_createReplyDoc(): Promise<Earthstar.Doc | Earthstar.ValidationError>
content: string,
threadRootTimestamp: number,
threadRootAuthor: string,
deleteAfter?: number,
_createRootDoc(content: string, deleteAfter?: number): Promise<Earthstar.Doc | Earthstar.ValidationError>
_docToPost(postDoc: Earthstar.Doc): Post
_docToThreadRoot(rootDoc: Earthstar.Doc): Post
clearReplyDraft(threadRootTimestamp: number, threadRootAuthor: string)
clearThreadRootDraft(id: string)
createReply(): Promise<Post | Earthstar.ValidationError>
threadRootTimestamp: number,
threadRootAuthorPubKey: string,
content: string,
deleteAfter?: number,
createThread(content: string, deleteAfter?: number): Promise<Thread | Earthstar.ValidationError>
getDraftThreadParts(id: string): Promise<{ title: string; content: string; } | undefined>
getPostTimestamp(postDoc: Earthstar.Doc): number
getReplyDraft(threadRootTimestamp: number, threadRootAuthor: string): Promise<string | undefined>
getReplyTimestamp(postDoc: Earthstar.Doc): number
getThreadRootDraftContent(id: string): Promise<string | undefined>
getThreadRootDraftIds(): Promise<string[]>
getThreadRoots(): Promise<Post[]>
getThreadRootTimestamp(rootDoc: Earthstar.Doc): number
getThreads(): Promise<Thread[]>
getThreadTitle(thread: Thread): string | undefined
lastThreadItem(thread: Thread): Post
markReadUpTo()
threadRootTimestamp: number,
threadRootAuthorPubKey: string,
readUpToTimestamp: number,
setReplyDraft(): Promise<Earthstar.Doc | Earthstar.ValidationError>
threadRootTimestamp: number,
threadRootAuthor: string,
content: string,
setThreadRootDraft(content: string, id?: string): Promise<string | Earthstar.ValidationError>
threadHasUnreadPosts(thread: Thread): Promise<boolean>