Don't show the Share action for non-file messages
This only shares files, if you try it on anything else it crashes NeoChat.
This commit is contained in:
@@ -395,6 +395,7 @@ KirigamiComponents.ConvergentContextMenu {
|
|||||||
room: root.room
|
room: root.room
|
||||||
eventId: root.eventId
|
eventId: root.eventId
|
||||||
property string filename: Core.StandardPaths.writableLocation(Core.StandardPaths.CacheLocation) + "/" + eventId.replace(":", "_").replace("/", "_").replace("+", "_") + root.room.fileNameToDownload(eventId)
|
property string filename: Core.StandardPaths.writableLocation(Core.StandardPaths.CacheLocation) + "/" + eventId.replace(":", "_").replace("/", "_").replace("+", "_") + root.room.fileNameToDownload(eventId)
|
||||||
|
visible: root.mimeType.length > 0
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
|||||||
Reference in New Issue
Block a user