From bd1f46349bfa9390bcc2d9e5b770b29412d19648 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Fri, 12 Jan 2024 18:52:22 +0100 Subject: [PATCH] synced by changes --- src/message_command_dispatcher.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/message_command_dispatcher.cpp b/src/message_command_dispatcher.cpp index 169925a..1d17c5d 100644 --- a/src/message_command_dispatcher.cpp +++ b/src/message_command_dispatcher.cpp @@ -243,16 +243,15 @@ bool MessageCommandDispatcher::onEvent(const Message::Events::MessageConstruct& // skip unrelyable synced if (e.e.all_of()) { - const auto& list = e.e.get().list; + const auto& list = e.e.get().ts; if ( std::find_if( list.cbegin(), list.cend(), - [this](const auto& it) { - // TODO: add weak self + [this](const auto&& it) { return _cr.any_of< Contact::Components::TagSelfStrong, Contact::Components::TagSelfWeak // trust weak self - >(it); + >(it.first); } ) == list.cend() ) {