mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Use flexiapi backend on first start.
Fix ephemeral set on creation.
This commit is contained in:
parent
dbf63b0c3e
commit
d969216e73
2 changed files with 20 additions and 2 deletions
|
|
@ -20,4 +20,8 @@ update_presence_model_timestamp_before_publish_expires_refresh=1
|
|||
max_conference_size=vga
|
||||
|
||||
[ui]
|
||||
use_qrcode=0
|
||||
|
||||
use_qrcode=0
|
||||
|
||||
[account_creator]
|
||||
backend=1
|
||||
|
|
|
|||
|
|
@ -262,13 +262,20 @@ bool CallsListModel::createSecureChat (const QString& subject, const QString &pa
|
|||
std::shared_ptr<const linphone::Address> localAddress;
|
||||
participants.push_back(address);
|
||||
params->enableEncryption(true);
|
||||
|
||||
params->setSubject(Utils::appStringToCoreString(subject));
|
||||
params->enableEncryption(true);
|
||||
params->enableGroup(true);
|
||||
|
||||
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) {
|
||||
int ephemeralTime = CoreManager::getInstance()->getSettingsModel()->getCreateEphemeralChatRooms();
|
||||
if( ephemeralTime>0){
|
||||
chatRoom->setEphemeralLifetime(ephemeralTime);
|
||||
chatRoom->enableEphemeral(true);
|
||||
}
|
||||
}
|
||||
// Still needed?
|
||||
// if( chatRoom != nullptr){
|
||||
// auto timelineList = CoreManager::getInstance()->getTimelineListModel();
|
||||
|
|
@ -366,6 +373,13 @@ QVariantMap CallsListModel::createChatRoom(const QString& subject, const int& se
|
|||
}
|
||||
if( !chatRoom)
|
||||
qWarning() << "Chat room cannot be created";
|
||||
else if(securityLevel > 0) {
|
||||
int ephemeralTime = CoreManager::getInstance()->getSettingsModel()->getCreateEphemeralChatRooms();
|
||||
if( ephemeralTime>0){
|
||||
chatRoom->setEphemeralLifetime(ephemeralTime);
|
||||
chatRoom->enableEphemeral(true);
|
||||
}
|
||||
}
|
||||
result["created"] = (chatRoom != nullptr);
|
||||
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue