Fix crash on security level on startupp, when the core is not ready (do not call chat room state changes while initialization)

This commit is contained in:
Julien Wadel 2022-09-06 16:33:54 +02:00
parent 0aeaf84ef0
commit 897af6ed15

View file

@ -129,7 +129,8 @@ void CoreHandlers::onChatRoomStateChanged(
const std::shared_ptr<linphone::ChatRoom> & chatRoom,
linphone::ChatRoom::State state
) {
emit chatRoomStateChanged(chatRoom, state);
if (core->getGlobalState() == linphone::GlobalState::On)
emit chatRoomStateChanged(chatRoom, state);
}
void CoreHandlers::onConfiguringStatus(