add locally unread/read comps
This commit is contained in:
parent
085d7bcff8
commit
c577a1fa3d
@ -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) {}
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user