Skip to content

Commit

Permalink
more renaming again, before it cant be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Green-Sky committed Apr 20, 2024
1 parent f9f70a0 commit 96b76dc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 17 deletions.
26 changes: 11 additions & 15 deletions src/solanaceae/message3/components.hpp
Expand Up @@ -45,23 +45,19 @@ namespace Message::Components {
};
// local end

namespace Remote {
// TODO: milliseconds sound excessive

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;
};
// 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;
};

} // 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;
Expand Down
4 changes: 2 additions & 2 deletions src/solanaceae/message3/components_id.inl
Expand Up @@ -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)
Expand Down

0 comments on commit 96b76dc

Please sign in to comment.