feat: add delete message support for stream messages (#215)

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Wes
2026-04-02 19:41:57 -07:00
committed by GitHub
parent 3e006a2d9e
commit 3450d8a7fb
11 changed files with 141 additions and 18 deletions

View File

@@ -96,10 +96,6 @@ function fromRawThreadReply(reply: RawThreadReply): ThreadReply {
};
}
export async function deleteMessage(eventId: string): Promise<void> {
await invokeTauri("delete_message", { eventId });
}
export async function getForumPosts(
channelId: string,
limit?: number,

View File

@@ -745,6 +745,10 @@ export async function editMessage(
await invokeTauri("edit_message", { channelId, eventId, content });
}
export async function deleteMessage(eventId: string): Promise<void> {
await invokeTauri("delete_message", { eventId });
}
export async function addReaction(
eventId: string,
emoji: string,