From 4e75bd64aedf6c252456da0ca7c30a414f0fcaaf Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 12 Mar 2025 22:21:51 +0100 Subject: [PATCH] remove mentions of contact3 --- solanaceae/tox_contacts/tox_contact_model2.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/solanaceae/tox_contacts/tox_contact_model2.cpp b/solanaceae/tox_contacts/tox_contact_model2.cpp index 0bba3e8..bcaa46a 100644 --- a/solanaceae/tox_contacts/tox_contact_model2.cpp +++ b/solanaceae/tox_contacts/tox_contact_model2.cpp @@ -178,7 +178,7 @@ ContactHandle4 ToxContactModel2::getContactFriend(uint32_t friend_number) { // first check contacts with friend id // TODO: lookup table - //_cr.view().each([&c, friend_number](const Contact3 e, const Contact::Components::ToxFriendEphemeral& f_id) { + //_cr.view().each([&c, friend_number](const Contact4 e, const Contact::Components::ToxFriendEphemeral& f_id) { for (const auto e : cr.view()) { if (cr.get(e).friend_number == friend_number) { c = e; @@ -195,7 +195,7 @@ ContactHandle4 ToxContactModel2::getContactFriend(uint32_t friend_number) { assert(f_key_opt.has_value()); // TODO: handle gracefully? const ToxKey& f_key = f_key_opt.value(); - //_cr.view().each([&c, &f_key](const Contact3 e, const Contact::Components::ToxFriendPersistent& f_key_comp) { + //_cr.view().each([&c, &f_key](const Contact4 e, const Contact::Components::ToxFriendPersistent& f_key_comp) { for (const auto e : cr.view()) { if (f_key == cr.get(e).key) { c = e; @@ -274,7 +274,7 @@ ContactHandle4 ToxContactModel2::getContactGroup(uint32_t group_number) { // first check contacts with group_number // TODO: lookup table - //_cr.view().each([&c, group_number](const Contact3 e, const Contact::Components::ToxGroupEphemeral& g_e) { + //_cr.view().each([&c, group_number](const Contact4 e, const Contact::Components::ToxGroupEphemeral& g_e) { for (const auto e : cr.view()) { if (cr.get(e).group_number == group_number) { c = e; @@ -291,7 +291,7 @@ ContactHandle4 ToxContactModel2::getContactGroup(uint32_t group_number) { assert(g_key_opt.has_value()); // TODO: handle gracefully? const ToxKey& g_key = g_key_opt.value(); - //_cr.view().each([&c, &g_key](const Contact3 e, const Contact::Components::ToxGroupPersistent& g_key_comp) { + //_cr.view().each([&c, &g_key](const Contact4 e, const Contact::Components::ToxGroupPersistent& g_key_comp) { for (const auto e : cr.view()) { if (g_key == cr.get(e).chat_id) { c = e; @@ -501,7 +501,7 @@ ContactHandle4 ToxContactModel2::getContactGroupPeer(uint32_t group_number, cons const auto& g_key = group_c.get().chat_id; // search by key - //_cr.view().each([&c, &g_key, &peer_key](const Contact3 e, const Contact::Components::ToxGroupPeerPersistent& g_p_key_comp) { + //_cr.view().each([&c, &g_key, &peer_key](const Contact4 e, const Contact::Components::ToxGroupPeerPersistent& g_p_key_comp) { for (const auto e : cr.view()) { const auto& g_p_key_comp = cr.get(e); if (peer_key == g_p_key_comp.peer_key && g_key == g_p_key_comp.chat_id) {