mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Remove unadmin feature to self because of not fully supported.
This commit is contained in:
parent
ad37fb0222
commit
83172efc88
4 changed files with 16 additions and 13 deletions
|
|
@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Deactivate action buttons and menus if chat room has been left.
|
||||
- Display of non-Ascii avatar
|
||||
- Remove duplicated nat policies.
|
||||
- Remove unadmin feature to self because of not fully supported.
|
||||
- Save Stun/Turn proxy configuration.
|
||||
- Switch off camera at startup.
|
||||
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ ColumnLayout {
|
|||
secure:0,
|
||||
visible:true,
|
||||
visibleHandler: function(entry){
|
||||
return !UtilsCpp.isMe(entry.sipAddress)
|
||||
return (entry.isMe != undefined && !entry.isMe) || (entry.isMe == undefined && !UtilsCpp.isMe(entry.sipAddress))
|
||||
},
|
||||
//: 'Remove this participant from the list' : Tootltip to explain that the action will lead to remove the participant.
|
||||
tooltipText: qsTr('participantsListRemoveTooltip'),
|
||||
|
|
|
|||
|
|
@ -275,7 +275,7 @@ ScrollableListView {
|
|||
width:50
|
||||
indicatorStyle: SwitchStyle.aux
|
||||
|
||||
visible: sipAddressesView.showSwitch
|
||||
visible: sipAddressesView.showSwitch && !$modelData.isMe
|
||||
|
||||
enabled:true
|
||||
checked: $modelData.adminStatus
|
||||
|
|
@ -300,7 +300,6 @@ ScrollableListView {
|
|||
anchors.verticalCenter: parent.verticalCenter
|
||||
tooltipText: modelData.tooltipText? modelData.tooltipText:''
|
||||
visible: sipAddressesView.actions[index].visible && (!sipAddressesView.actions[index].visibleHandler || sipAddressesView.actions[index].visibleHandler(contactView.entry))
|
||||
|
||||
onClicked: {
|
||||
sipAddressesView.actions[index].handler(contactView.entry)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -150,16 +150,19 @@ DialogPlus {
|
|||
|
||||
|
||||
actions: dialog.adminMode ? [{
|
||||
colorSet: InfoChatRoomStyle.removeParticipant,
|
||||
secure:0,
|
||||
visible:true,
|
||||
tooltipText: 'Remove this participant from the selection',
|
||||
handler: function (entry) {
|
||||
selectedParticipants.removeModel(entry)
|
||||
// ++lastContacts.reloadCount
|
||||
}
|
||||
}]
|
||||
: []
|
||||
colorSet: InfoChatRoomStyle.removeParticipant,
|
||||
secure:0,
|
||||
visible:true,
|
||||
visibleHandler: function(entry){
|
||||
return (entry.isMe != undefined && !entry.isMe) || (entry.isMe == undefined && !UtilsCpp.isMe(entry.sipAddress))
|
||||
},
|
||||
tooltipText: 'Remove this participant from the selection',
|
||||
handler: function (entry) {
|
||||
selectedParticipants.removeModel(entry)
|
||||
// ++lastContacts.reloadCount
|
||||
}
|
||||
}]
|
||||
: []
|
||||
|
||||
genSipAddress: ''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue