From ab1c6c474975e1ab944c9e6cb6046196033a7d5d Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 27 Apr 2024 14:04:13 +0200 Subject: [PATCH] use better contact in forward list --- src/chat_gui4.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/chat_gui4.cpp b/src/chat_gui4.cpp index cdb258f..9df6966 100644 --- a/src/chat_gui4.cpp +++ b/src/chat_gui4.cpp @@ -871,10 +871,15 @@ void ChatGui4::renderMessageBodyFile(Message3Registry& reg, const Message3 e) { } if (ImGui::BeginPopup("forward to contact")) { - // TODO: make exclusion work - //for (const auto& c : _cr.view, entt::exclude_t>()) { for (const auto& c : _cr.view()) { - if (renderContactListContactSmall(c, false)) { + // filter + if (_cr.any_of(c)) { + continue; + } + // TODO: check for contact capability + + if (renderContactBig(_theme, _contact_tc, {_cr, c}, 1, false, true, false)) { + //if (renderContactListContactSmall(c, false)) { //_rmm.sendFilePath(*_selected_contact, path.filename().generic_u8string(), path.generic_u8string()); const auto& fil = reg.get(e); for (const auto& path : fil.file_list) {