Fix ephemeral time set on chat room creation.

Update SDK to 5.2.94 (WASAPI crash)
This commit is contained in:
Julien Wadel 2023-07-31 10:10:34 +02:00
parent 35df8d0408
commit 79af8a65fd
3 changed files with 8 additions and 4 deletions

View file

@ -37,7 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Display video thumbnails.
- Crop thumbnail and pictures if distored.
- Enable registration from accounts list.
- Update SDK to 5.2.92
- Update SDK to 5.2.94
### Removed
- Picture zoom on mouse over.

View file

@ -271,8 +271,10 @@ bool CallsListModel::createSecureChat (const QString& subject, const QString &pa
qInfo() << "Create secure ChatRoom: " << subject << ", from " << QString::fromStdString(localAddress->asString()) << " and with " <<participantAddress;;
std::shared_ptr<linphone::ChatRoom> chatRoom = core->createChatRoom(params, localAddress, participants);
if(chatRoom)
if(chatRoom) {
chatRoom->setEphemeralLifetime(ephemeralTime);
chatRoom->enableEphemeral(ephemeralTime>0);
}
// Still needed?
// if( chatRoom != nullptr){
// auto timelineList = CoreManager::getInstance()->getTimelineListModel();
@ -373,8 +375,10 @@ QVariantMap CallsListModel::createChatRoom(const QString& subject, const int& se
}
if( !chatRoom)
qWarning() << "Chat room cannot be created";
else if(securityLevel > 0)
else if(securityLevel > 0) {
chatRoom->setEphemeralLifetime(ephemeralTime);
chatRoom->enableEphemeral(ephemeralTime>0);
}
result["created"] = (chatRoom != nullptr);
return result;

@ -1 +1 @@
Subproject commit ac2c5f4a9abbf295f3c6045d3d988a84cea752ed
Subproject commit d11ee80e4f7ee67e876656286d94ffda49ac1d4e