From a90c26f5666db5b75865c017cc585b48e553cd4b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 17 Jan 2026 11:15:03 -0500 Subject: [PATCH] Don't show the Share action for non-file messages This only shares files, if you try it on anything else it crashes NeoChat. --- src/timeline/DelegateContextMenu.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/timeline/DelegateContextMenu.qml b/src/timeline/DelegateContextMenu.qml index 22360381b..5009d1899 100644 --- a/src/timeline/DelegateContextMenu.qml +++ b/src/timeline/DelegateContextMenu.qml @@ -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 {