more renaming again, before it cant be changed

This commit is contained in:
Green Sky 2024-04-20 13:46:27 +02:00
parent f9f70a05b1
commit 96b76dc67f
No known key found for this signature in database
2 changed files with 13 additions and 17 deletions

View File

@ -45,23 +45,19 @@ namespace Message::Components {
};
// local end
namespace Remote {
// TODO: milliseconds sound excessive
// TODO: milliseconds sound excessive
struct ReceivedBy {
// Due to a lack of info with some protocols,
// this is often the timestamp we heard they already have the message.
entt::dense_map<Contact3, uint64_t> ts;
};
struct TimestampReceived {
// Due to a lack of info with most protocols,
// this is often the timestamp we heard they already have the message.
entt::dense_map<Contact3, uint64_t> ts;
};
struct TimestampRead {
// Due to a lack of info with most protocols,
// this is often the timestamp we heard they have read it the message.
entt::dense_map<Contact3, uint64_t> ts;
};
} // Remote
struct ReadBy {
entt::dense_map<Contact3, uint64_t> ts;
};
// similar to ReceivedBy, but only set when they sent the message
// (efficent protocols have 1 contact in here)
struct SyncedBy {
// ts is not updated once set
entt::dense_map<Contact3, uint64_t> ts;

View File

@ -25,8 +25,8 @@ 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::Remote::TimestampReceived)
DEFINE_COMP_ID(Message::Components::Remote::TimestampRead)
DEFINE_COMP_ID(Message::Components::ReceivedBy)
DEFINE_COMP_ID(Message::Components::ReadBy)
DEFINE_COMP_ID(Message::Components::SyncedBy)
DEFINE_COMP_ID(Message::Components::MessageText)
DEFINE_COMP_ID(Message::Components::TagMessageIsAction)