mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-30 02:19:23 +00:00
fix(CoreManager): move assert to the right place in getChatModelFromSipAddress
This commit is contained in:
parent
7aeba2757c
commit
da0b235d03
1 changed files with 2 additions and 2 deletions
|
|
@ -77,10 +77,10 @@ shared_ptr<ChatModel> CoreManager::getChatModelFromSipAddress (const QString &si
|
|||
if (!sipAddress.length())
|
||||
return nullptr;
|
||||
|
||||
Q_ASSERT(mCore->createAddress(::Utils::appStringToCoreString(sipAddress)) != nullptr);
|
||||
|
||||
// Create a new chat model.
|
||||
if (!mChatModels.contains(sipAddress)) {
|
||||
Q_ASSERT(mCore->createAddress(::Utils::appStringToCoreString(sipAddress)) != nullptr);
|
||||
|
||||
auto deleter = [this](ChatModel *chatModel) {
|
||||
mChatModels.remove(chatModel->getSipAddress());
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue