mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 03:48:09 +00:00
fix(ConferenceAddMOdel): check valid sip address in addToConference
This commit is contained in:
parent
c515eec481
commit
d7be2afbb7
1 changed files with 7 additions and 5 deletions
|
|
@ -90,15 +90,17 @@ bool ConferenceHelperModel::ConferenceAddModel::addToConference (const QString &
|
|||
if (mSipAddresses.contains(sipAddress))
|
||||
return false;
|
||||
|
||||
int row = rowCount();
|
||||
shared_ptr<linphone::Address> address = CoreManager::getInstance()->getCore()->interpretUrl(
|
||||
::Utils::appStringToCoreString(sipAddress)
|
||||
);
|
||||
if (!address || address->getUsername().empty())
|
||||
return false;
|
||||
|
||||
int row = rowCount();
|
||||
beginInsertRows(QModelIndex(), row, row);
|
||||
|
||||
qInfo() << QStringLiteral("Add sip address to conference: `%1`.").arg(sipAddress);
|
||||
shared_ptr<linphone::Address> linphoneAddress = CoreManager::getInstance()->getCore()->interpretUrl(
|
||||
::Utils::appStringToCoreString(sipAddress)
|
||||
);
|
||||
addToConferencePrivate(linphoneAddress);
|
||||
addToConferencePrivate(address);
|
||||
|
||||
endInsertRows();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue