From 027a06789289422f146f879a9bbf6e487151d0ae Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Wed, 6 Mar 2024 17:26:30 +0100 Subject: [PATCH] Fix crash on sending a forward message on a new secure chat room. --- CHANGELOG.md | 4 ++-- linphone-app/src/components/chat-room/ChatRoomModel.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f5cffeaee..7b3e4cf12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## 5.2.2 - 2024-03-04 +## 5.2.2 - 2024-03-07 ### Fixed - Audio latency and bad echo behavior when going to media settings while being in call. @@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Wrong day offset in start date when scheduling a conference. - Empty route can now be set in account settings. - Network remote file can be used in chat attachment on Windows. -- Some crashs. +- Crash on forwarding a message to a new secure chat room. - Update SDK to 5.3.26. ### Added diff --git a/linphone-app/src/components/chat-room/ChatRoomModel.cpp b/linphone-app/src/components/chat-room/ChatRoomModel.cpp index f8b5bb6a8..0e9dde70c 100644 --- a/linphone-app/src/components/chat-room/ChatRoomModel.cpp +++ b/linphone-app/src/components/chat-room/ChatRoomModel.cpp @@ -718,7 +718,7 @@ void ChatRoomModel::compose () { void ChatRoomModel::resetMessageCount () { if(mChatRoom && !mDeleteChatRoom && markAsReadEnabled()){ - if( mChatRoom->getState() != linphone::ChatRoom::State::Deleted){ + if( mChatRoom->getState() != linphone::ChatRoom::State::Deleted && mChatRoom->getState() != linphone::ChatRoom::State::CreationPending){ if (mChatRoom->getUnreadMessagesCount() > 0){ mChatRoom->markAsRead();// Marking as read is only for messages. Not for calls. }