From 2a717c216dc2890683a842d25f0fe56d07e8ad8b Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 20 Apr 2024 15:20:32 +0200 Subject: [PATCH] adopt receivedby rename --- src/solanaceae/zox/ngc_hs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/solanaceae/zox/ngc_hs.cpp b/src/solanaceae/zox/ngc_hs.cpp index a217578..53d4dcb 100644 --- a/src/solanaceae/zox/ngc_hs.cpp +++ b/src/solanaceae/zox/ngc_hs.cpp @@ -370,6 +370,7 @@ bool ZoxNGCHistorySync::onEvent(const Events::ZoxNGC_ngch_syncmsg& e) { // find matches Message3 matching_e = entt::null; { + // TODO: use Contact::Components::MessageIsSame instead auto view = reg.view(); view.use(); for (const auto ent : view) { @@ -438,7 +439,7 @@ bool ZoxNGCHistorySync::onEvent(const Events::ZoxNGC_ngch_syncmsg& e) { } { // now we also know they got the message - auto& list = reg.get_or_emplace(matching_e).ts; + auto& list = reg.get_or_emplace(matching_e).ts; // dont overwrite list.try_emplace(sync_by_c, now_ts); // TODO: throw update?