Don't show popup when focusing unredactable event

This commit is contained in:
miruka 2020-04-03 12:58:15 -04:00
parent 78d5183a68
commit 3e10a6d530
2 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,6 @@
- Long-press-drag to select multiple messages on touch
- Drag to select multiple messages on non-touch
- Redacting messages
- Make clicking on user/room mentions open relevant UI instead of matrix.to
URL in browser
- Make rooms fully manageable within Mirage: settings, permissions, kick, etc

View File

@ -51,6 +51,7 @@ Rectangle {
}
HShortcut {
enabled: (events && events.length > 0) || events === null
sequences: window.settings.keys.removeFocusedOrSelectedMessages
onActivated: utils.makePopup(
"Popups/RedactPopup.qml",
@ -81,6 +82,8 @@ Rectangle {
eventList.canRedact(eventList.currentItem.currentModel) ?
[eventList.currentItem.currentModel] :
eventList.currentItem ?
[] :
null
function findLastRemovableDelegate() {