mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-07 15:08:24 +00:00
Set ephemeral capability check by using linphone check
This commit is contained in:
parent
17466eff7f
commit
3436589f21
2 changed files with 2 additions and 1 deletions
|
|
@ -455,7 +455,7 @@ long ChatRoomModel::getEphemeralLifetime() const{
|
|||
}
|
||||
|
||||
bool ChatRoomModel::canBeEphemeral(){
|
||||
return mChatRoom && isGroupEnabled();
|
||||
return mChatRoom && mChatRoom->hasCapability((int)linphone::ChatRoomCapabilities::Conference);
|
||||
}
|
||||
|
||||
bool ChatRoomModel::haveEncryption() const{
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ DialogPlus {
|
|||
TextButtonB {
|
||||
//: 'start' : button text to start ephemeral mode
|
||||
text: qsTr('startButton')
|
||||
visible: chatRoomModel.canBeEphemeral
|
||||
|
||||
onClicked: {
|
||||
if(dialog.timer=== 0)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue