small formatting
This commit is contained in:
parent
24bbf2a338
commit
c327d9d4dd
@ -76,7 +76,7 @@ void ToxContactModel2::iterate(float delta) {
|
||||
std::vector<Contact4> updated;
|
||||
|
||||
_cs.registry().view<Contact::Components::ToxGroupPeerEphemeral, Contact::Components::ConnectionState>().each([this, &updated](auto c, const auto& tox_peer, auto& con) {
|
||||
auto state_opt = std::get<0>(_t.toxGroupPeerGetConnectionStatus(tox_peer.group_number, tox_peer.peer_number));
|
||||
auto [state_opt, _] = _t.toxGroupPeerGetConnectionStatus(tox_peer.group_number, tox_peer.peer_number);
|
||||
if (!state_opt.has_value()) {
|
||||
return;
|
||||
}
|
||||
|
@ -25,7 +25,6 @@ class ToxContactModel2 : public ContactModel4I, public ToxEventI {
|
||||
ToxContactModel2(ContactStore4I& cs, ToxI& t, ToxEventProviderI& tep);
|
||||
virtual ~ToxContactModel2(void);
|
||||
|
||||
// TODO: continually fetch group peer connection state, since JF does not want to add cb/event
|
||||
void iterate(float delta);
|
||||
|
||||
protected: // mmi
|
||||
|
Loading…
x
Reference in New Issue
Block a user