add locally unread/read comps

This commit is contained in:
Green Sky 2023-09-27 15:57:13 +02:00
parent 085d7bcff8
commit c577a1fa3d
No known key found for this signature in database
2 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,13 @@ namespace Message::Components {
uint64_t ts {0}; uint64_t ts {0};
}; };
struct TagUnread {};
struct Read {
// TODO: too much?
uint64_t ts {0};
};
struct MessageText { struct MessageText {
std::string text; std::string text;
MessageText(const std::string_view& view) : text(view) {} MessageText(const std::string_view& view) : text(view) {}

View File

@ -17,6 +17,8 @@ DEFINE_COMP_ID(Message::Components::ContactTo)
DEFINE_COMP_ID(Message::Components::Timestamp) DEFINE_COMP_ID(Message::Components::Timestamp)
DEFINE_COMP_ID(Message::Components::TimestampProcessed) DEFINE_COMP_ID(Message::Components::TimestampProcessed)
DEFINE_COMP_ID(Message::Components::TimestampWritten) DEFINE_COMP_ID(Message::Components::TimestampWritten)
DEFINE_COMP_ID(Message::Components::TagUnread)
DEFINE_COMP_ID(Message::Components::Read)
DEFINE_COMP_ID(Message::Components::MessageText) DEFINE_COMP_ID(Message::Components::MessageText)
DEFINE_COMP_ID(Message::Components::TagMessageIsAction) DEFINE_COMP_ID(Message::Components::TagMessageIsAction)