Remove unadmin feature to self because of not fully supported.

This commit is contained in:
Julien Wadel 2023-02-15 16:27:52 +01:00
parent ad37fb0222
commit 83172efc88
4 changed files with 16 additions and 13 deletions

View file

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

View file

@ -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'),

View file

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

View file

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