diff --git a/Linphone/core/chat/ChatList.cpp b/Linphone/core/chat/ChatList.cpp index 136562fe9..1d7d02cde 100644 --- a/Linphone/core/chat/ChatList.cpp +++ b/Linphone/core/chat/ChatList.cpp @@ -158,6 +158,7 @@ void ChatList::setSelf(QSharedPointer me) { const std::shared_ptr &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;