From 864f9b8f74344e5750aa4b7b1596f88c150b40bd Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 20 Feb 2024 20:09:49 +0000 Subject: [PATCH] Add feature flag for reply in thread Currently the ability to reply in threads was added but not the ability to actually view threads so this doesn't currently make much sense to just have enabled int he main build. Note: I want to cherrypick this so it's just the flag. I'll add a feature flag page to dev tools for master soon. --- src/neochatconfig.kcfg | 6 ++++++ src/qml/HoverActions.qml | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/neochatconfig.kcfg b/src/neochatconfig.kcfg index fbdc9001f..5fd110abf 100644 --- a/src/neochatconfig.kcfg +++ b/src/neochatconfig.kcfg @@ -152,5 +152,11 @@ + + + + false + + diff --git a/src/qml/HoverActions.qml b/src/qml/HoverActions.qml index bc309c6d8..585a08d62 100644 --- a/src/qml/HoverActions.qml +++ b/src/qml/HoverActions.qml @@ -7,6 +7,7 @@ import QtQuick.Layouts import org.kde.kirigami as Kirigami import org.kde.neochat +import org.kde.neochat.config /** * @brief A component that provides a set of actions when a message is hovered in the timeline. @@ -108,7 +109,7 @@ QQC2.Control { } }, Kirigami.Action { - visible: !root.currentRoom.readOnly + visible: Config.threads && !root.currentRoom.readOnly text: i18n("Reply in Thread") icon.name: "dialog-messages" onTriggered: {