Fix crash on sending a forward message on a new secure chat room.

This commit is contained in:
Julien Wadel 2024-03-06 17:26:30 +01:00
parent ef74c2cb47
commit 027a067892
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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.
}