mirror of
https://github.com/block/buzz.git
synced 2026-12-01 05:32:24 +00:00
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:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user