synced by changes
This commit is contained in:
parent
77936081b5
commit
bd1f46349b
@ -243,16 +243,15 @@ bool MessageCommandDispatcher::onEvent(const Message::Events::MessageConstruct&
|
|||||||
|
|
||||||
// skip unrelyable synced
|
// skip unrelyable synced
|
||||||
if (e.e.all_of<Message::Components::SyncedBy>()) {
|
if (e.e.all_of<Message::Components::SyncedBy>()) {
|
||||||
const auto& list = e.e.get<Message::Components::SyncedBy>().list;
|
const auto& list = e.e.get<Message::Components::SyncedBy>().ts;
|
||||||
if (
|
if (
|
||||||
std::find_if(
|
std::find_if(
|
||||||
list.cbegin(), list.cend(),
|
list.cbegin(), list.cend(),
|
||||||
[this](const auto& it) {
|
[this](const auto&& it) {
|
||||||
// TODO: add weak self
|
|
||||||
return _cr.any_of<
|
return _cr.any_of<
|
||||||
Contact::Components::TagSelfStrong,
|
Contact::Components::TagSelfStrong,
|
||||||
Contact::Components::TagSelfWeak // trust weak self
|
Contact::Components::TagSelfWeak // trust weak self
|
||||||
>(it);
|
>(it.first);
|
||||||
}
|
}
|
||||||
) == list.cend()
|
) == list.cend()
|
||||||
) {
|
) {
|
||||||
|
Loading…
Reference in New Issue
Block a user