From 27fd9e688ba046d516944191375f7cde61f06dba Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 30 Sep 2023 00:27:01 +0200 Subject: [PATCH] unread/read status --- solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp index 4f435c0..65c17cc 100644 --- a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp +++ b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp @@ -1042,6 +1042,8 @@ bool SHA1_NGCFT1::onEvent(const Events::NGCFT1_recv_message& e) { //reg.emplace(new_msg_e, 0); reg.emplace(new_msg_e, ts); // reactive? + reg.emplace(new_msg_e); + { // by whom auto& synced_by = reg.get_or_emplace(new_msg_e).list; synced_by.emplace(self_c); @@ -1325,6 +1327,7 @@ bool SHA1_NGCFT1::sendFilePath(const Contact3 c, std::string_view file_name, std reg_ptr->emplace(msg_e, c); reg_ptr->emplace(msg_e, c_self); reg_ptr->emplace(msg_e, ts); // reactive? + reg_ptr->emplace(msg_e, ts); reg_ptr->emplace(msg_e); reg_ptr->emplace(msg_e);