small formatting

This commit is contained in:
Green Sky 2025-03-12 19:15:36 +01:00
parent 24bbf2a338
commit c327d9d4dd
No known key found for this signature in database
GPG Key ID: DBE05085D874AB4A
2 changed files with 1 additions and 2 deletions

View File

@ -76,7 +76,7 @@ void ToxContactModel2::iterate(float delta) {
std::vector<Contact4> updated; std::vector<Contact4> updated;
_cs.registry().view<Contact::Components::ToxGroupPeerEphemeral, Contact::Components::ConnectionState>().each([this, &updated](auto c, const auto& tox_peer, auto& con) { _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()) { if (!state_opt.has_value()) {
return; return;
} }

View File

@ -25,7 +25,6 @@ class ToxContactModel2 : public ContactModel4I, public ToxEventI {
ToxContactModel2(ContactStore4I& cs, ToxI& t, ToxEventProviderI& tep); ToxContactModel2(ContactStore4I& cs, ToxI& t, ToxEventProviderI& tep);
virtual ~ToxContactModel2(void); virtual ~ToxContactModel2(void);
// TODO: continually fetch group peer connection state, since JF does not want to add cb/event
void iterate(float delta); void iterate(float delta);
protected: // mmi protected: // mmi