From c577a1fa3d19272d481a0ed4a5b8715524204928 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 27 Sep 2023 15:57:13 +0200 Subject: [PATCH] add locally unread/read comps --- solanaceae/message3/components.hpp | 7 +++++++ solanaceae/message3/components_id.inl | 2 ++ 2 files changed, 9 insertions(+) diff --git a/solanaceae/message3/components.hpp b/solanaceae/message3/components.hpp index f7fc413..dfed6eb 100644 --- a/solanaceae/message3/components.hpp +++ b/solanaceae/message3/components.hpp @@ -30,6 +30,13 @@ namespace Message::Components { uint64_t ts {0}; }; + struct TagUnread {}; + + struct Read { + // TODO: too much? + uint64_t ts {0}; + }; + struct MessageText { std::string text; MessageText(const std::string_view& view) : text(view) {} diff --git a/solanaceae/message3/components_id.inl b/solanaceae/message3/components_id.inl index 6aed4bd..2ed9a8f 100644 --- a/solanaceae/message3/components_id.inl +++ b/solanaceae/message3/components_id.inl @@ -17,6 +17,8 @@ DEFINE_COMP_ID(Message::Components::ContactTo) DEFINE_COMP_ID(Message::Components::Timestamp) DEFINE_COMP_ID(Message::Components::TimestampProcessed) 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::TagMessageIsAction)