mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
fix crash when no account and try to add chat
This commit is contained in:
parent
c4d275c5b3
commit
6d957a2884
1 changed files with 1 additions and 0 deletions
|
|
@ -158,6 +158,7 @@ void ChatList::setSelf(QSharedPointer<ChatList> me) {
|
|||
const std::shared_ptr<linphone::ChatMessage> &message, bool sendAddSignal = false) {
|
||||
mustBeInLinphoneThread(log().arg(Q_FUNC_INFO));
|
||||
// if (!message) return;
|
||||
if (!core->getDefaultAccount()) return;
|
||||
if (room->getAccount() != core->getDefaultAccount()) {
|
||||
qInfo() << log().arg("Chat room to add does not refer to current account, return");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue