Don't show popup when focusing unredactable event
This commit is contained in:
parent
78d5183a68
commit
3e10a6d530
1
TODO.md
1
TODO.md
|
@ -46,7 +46,6 @@
|
||||||
- Long-press-drag to select multiple messages on touch
|
- Long-press-drag to select multiple messages on touch
|
||||||
- Drag to select multiple messages on non-touch
|
- Drag to select multiple messages on non-touch
|
||||||
|
|
||||||
- Redacting messages
|
|
||||||
- Make clicking on user/room mentions open relevant UI instead of matrix.to
|
- Make clicking on user/room mentions open relevant UI instead of matrix.to
|
||||||
URL in browser
|
URL in browser
|
||||||
- Make rooms fully manageable within Mirage: settings, permissions, kick, etc
|
- Make rooms fully manageable within Mirage: settings, permissions, kick, etc
|
||||||
|
|
|
@ -51,6 +51,7 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
HShortcut {
|
HShortcut {
|
||||||
|
enabled: (events && events.length > 0) || events === null
|
||||||
sequences: window.settings.keys.removeFocusedOrSelectedMessages
|
sequences: window.settings.keys.removeFocusedOrSelectedMessages
|
||||||
onActivated: utils.makePopup(
|
onActivated: utils.makePopup(
|
||||||
"Popups/RedactPopup.qml",
|
"Popups/RedactPopup.qml",
|
||||||
|
@ -81,6 +82,8 @@ Rectangle {
|
||||||
eventList.canRedact(eventList.currentItem.currentModel) ?
|
eventList.canRedact(eventList.currentItem.currentModel) ?
|
||||||
[eventList.currentItem.currentModel] :
|
[eventList.currentItem.currentModel] :
|
||||||
|
|
||||||
|
eventList.currentItem ?
|
||||||
|
[] :
|
||||||
null
|
null
|
||||||
|
|
||||||
function findLastRemovableDelegate() {
|
function findLastRemovableDelegate() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user