This commit is contained in:
Green Sky 2024-01-12 18:56:33 +01:00
parent 75ed1dffeb
commit ce760a800c
No known key found for this signature in database

View File

@ -294,6 +294,8 @@ bool ToxMessageManager::onToxEvent(const Tox_Event_Group_Message* e) {
reg.get_or_emplace<Message::Components::SyncedBy>(new_msg_e).ts.emplace(self_c, ts); reg.get_or_emplace<Message::Components::SyncedBy>(new_msg_e).ts.emplace(self_c, ts);
} }
reg.get_or_emplace<Message::Components::Remote::TimestampReceived>(new_msg_e).ts.try_emplace(self_c, ts);
_rmm.throwEventConstruct(reg, new_msg_e); _rmm.throwEventConstruct(reg, new_msg_e);
return false; // TODO: true? return false; // TODO: true?
} }
@ -340,6 +342,8 @@ bool ToxMessageManager::onToxEvent(const Tox_Event_Group_Private_Message* e) {
reg.emplace<Message::Components::TagUnread>(new_msg_e); reg.emplace<Message::Components::TagUnread>(new_msg_e);
// private does not track synced by // private does not track synced by
// but receive state
reg.get_or_emplace<Message::Components::Remote::TimestampReceived>(new_msg_e).ts.try_emplace(self_c, ts);
_rmm.throwEventConstruct(reg, new_msg_e); _rmm.throwEventConstruct(reg, new_msg_e);
return false; return false;