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 call = callModel->getMonitor();
|
||||||
auto remoteAddress = call->getRemoteAddress();
|
auto remoteAddress = call->getRemoteAddress();
|
||||||
std::list<std::shared_ptr<linphone::Address>> participants;
|
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 core = CoreModel::getInstance()->getCore();
|
||||||
auto params = getChatRoomParams(call);
|
auto params = getChatRoomParams(call);
|
||||||
if (!params) {
|
if (!params) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue