fix crash when eventLog from newEvent signal is null

This commit is contained in:
Gaelle Braud 2026-01-21 17:00:23 +01:00
parent cdd2783f6c
commit 5622016824

View file

@ -211,6 +211,7 @@ void ChatCore::setSelf(QSharedPointer<ChatCore> me) {
const std::shared_ptr<const linphone::EventLog> &eventLog) {
if (mChatModel->getMonitor() != chatRoom) return;
lDebug() << "EVENT LOG RECEIVED IN CHATROOM" << mChatModel->getTitle();
if (!eventLog) return;
auto event = EventLogCore::create(eventLog, chatRoom);
if (event->isHandled()) {
mChatModelConnection->invokeToCore([this, event]() { emit eventsInserted({event}); });