Msg delete and edit protocol and events

This commit is contained in:
2026-08-22 12:39:23 +02:00
parent b4f9210486
commit 0dc30233e9
2 changed files with 32 additions and 0 deletions
+22
View File
@@ -19,6 +19,16 @@ export type ClientMethod =
| {
method: "Users";
users: Record<string, ClientMeta>;
}
| {
method: "MessageEdited";
channel_id: string;
message: StoredMessage;
}
| {
method: "MessageDeleted";
channel_id: string;
message_id: string;
};
export type ServerMethod =
@@ -49,4 +59,16 @@ export type ServerMethod =
| {
method: "GetUsers";
pubkeys: string[];
}
| {
method: "EditMessage";
message_id: string;
channel_id: string;
content: string;
signature: string;
}
| {
method: "DeleteMessage";
channel_id: string;
message_id: string;
};