From 61d62c91ca0f8ac052f0cfb83ae1f6cbf7cebce0 Mon Sep 17 00:00:00 2001 From: Gaelle Braud Date: Thu, 28 Aug 2025 11:55:13 +0200 Subject: [PATCH] fix create chat room from conference --- Linphone/model/tool/ToolModel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Linphone/model/tool/ToolModel.cpp b/Linphone/model/tool/ToolModel.cpp index f4db8bb91..b535b4828 100644 --- a/Linphone/model/tool/ToolModel.cpp +++ b/Linphone/model/tool/ToolModel.cpp @@ -662,7 +662,14 @@ std::shared_ptr ToolModel::createCurrentCallChat(std::shared auto call = callModel->getMonitor(); auto remoteAddress = call->getRemoteAddress(); std::list> participants; - participants.push_back(remoteAddress->clone()); + if (call->getConference()) { + for (auto &participant : call->getConference()->getParticipantList()) { + auto address = participant->getAddress(); + if (address) participants.push_back(address->clone()); + } + } else { + participants.push_back(remoteAddress->clone()); + } auto core = CoreModel::getInstance()->getCore(); auto params = getChatRoomParams(call); if (!params) {