[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user