fix sync on sender less messages (rare crash)
This commit is contained in:
parent
2a717c216d
commit
ecfaecd7f9
@ -99,6 +99,10 @@ float ZoxNGCHistorySync::tick(float delta) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!reg.all_of<Message::Components::ContactFrom>(msg_e)) {
|
||||||
|
std::cerr << "ZOX NGCHS error: msg without sender\n";
|
||||||
|
continue;
|
||||||
|
}
|
||||||
const auto& msg_sender = reg.get<Message::Components::ContactFrom>(msg_e).c;
|
const auto& msg_sender = reg.get<Message::Components::ContactFrom>(msg_e).c;
|
||||||
|
|
||||||
if (!_cr.all_of<Contact::Components::ToxGroupPeerPersistent>(msg_sender)) {
|
if (!_cr.all_of<Contact::Components::ToxGroupPeerPersistent>(msg_sender)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user