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:
Joshua Goins
2026-01-17 11:15:03 -05:00
parent c2ae5afa73
commit a90c26f566

View File

@@ -395,6 +395,7 @@ KirigamiComponents.ConvergentContextMenu {
room: root.room
eventId: root.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 {