[client] Reactions and replies: a message is named by its author and seq, a reply carries its reference, a reaction sets or removes, a newer kind is Unsupported

This commit is contained in:
2026-11-21 20:02:51 +01:00
parent 1d7f08927d
commit 9d9d63c02b
9 changed files with 875 additions and 31 deletions
+7 -1
View File
@@ -148,6 +148,12 @@ fixed_bytes!(
InviteId,
16
);
fixed_bytes!(
/// A message's author: the 16 random bytes in their MLS credential, made on their device, never
/// a name. With the author's `seq` it names a message (`PROTOCOL.md` §4, reactions and replies).
Author,
16
);
fixed_bytes!(
/// SHA-256 of a token, or of a blob when it is acknowledged. The relay stores token hashes only.
Sha256Hash,
@@ -193,7 +199,7 @@ macro_rules! debug_as_wire {
}
)*};
}
debug_as_wire!(MailboxId, InviteId, Sha256Hash);
debug_as_wire!(MailboxId, InviteId, Sha256Hash, Author);
/// The SHA-256 of a blob: how its recipient acknowledges it.
pub fn blob_hash(blob: &[u8]) -> Sha256Hash {