mirror of
https://github.com/chatmail/core.git
synced 2026-09-22 13:01:21 +03:00
use Chat-Broadcast-States: header insted of -Reactions:
the wire format is already prepared to carry information additionally to reactions, so let the header name reflect that as well. in practise, we might want to use a `pinned` flag very soon in case pinned messages got resent in channels. it makes sense if that flag goes to the message as such, and not to an extra message. and then it makes sense to not introduce a new things. ftr, this is about resending state to other members, it is not about syncing across devices for the same user. the code as such is not changed by this PR, it is only a wording preparation, of a header that is not even visible. if we semantically put things other than reactions to the wire format, we may want to move it out of `broadcast_reactions.rs`
This commit is contained in:
@@ -73,7 +73,7 @@ pub enum Param {
|
||||
/// For Messages: Render message as a RFC 9078 reaction.
|
||||
Reaction = b'x',
|
||||
|
||||
/// For Messages: Additional reactions that go to the `Chat-Broadcast-Reactions:` header
|
||||
/// For Messages: Additional reactions that go to the `Chat-Broadcast-States:` header
|
||||
BroadcastReactions = b'X',
|
||||
|
||||
/// For Chats: the timestamp of the last reaction.
|
||||
|
||||
Reference in New Issue
Block a user