mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
fix create chat room from conference
This commit is contained in:
parent
033051066b
commit
61d62c91ca
1 changed files with 8 additions and 1 deletions
|
|
@ -662,7 +662,14 @@ std::shared_ptr<linphone::ChatRoom> ToolModel::createCurrentCallChat(std::shared
|
|||
auto call = callModel->getMonitor();
|
||||
auto remoteAddress = call->getRemoteAddress();
|
||||
std::list<std::shared_ptr<linphone::Address>> 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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue