From a17d7e18fddb1762bfe723f170dd45da4178d559 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. (cherry picked from commit a90c26f5666db5b75865c017cc585b48e553cd4b) --- src/timeline/DelegateContextMenu.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/timeline/DelegateContextMenu.qml b/src/timeline/DelegateContextMenu.qml index f32dce038..41523d12b 100644 --- a/src/timeline/DelegateContextMenu.qml +++ b/src/timeline/DelegateContextMenu.qml @@ -393,6 +393,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 {