[network/neochat] src/app/qml: Change button text depending on if you already have a chat with someone
Joshua Goins <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 0e4a4640688c6a20d2541983a9aa7408997837f3 by Joshua Goins.
Committed on 26/07/2026 at 15:51.
Pushed by redstrate into branch 'master'.
Change button text depending on if you already have a chat with someone
This makes it clearer whether you're about to start a new chat.
M +1 -1 src/app/qml/UserDetailDialog.qml
https://invent.kde.org/network/neochat/-/commit/0e4a4640688c6a20d2541983a9aa7408997837f3
diff --git a/src/app/qml/UserDetailDialog.qml b/src/app/qml/UserDetailDialog.qml
index a77f0ce95..bf6bd133f 100644
--- a/src/app/qml/UserDetailDialog.qml
+++ b/src/app/qml/UserDetailDialog.qml
@@ -152,7 +152,7 @@ Kirigami.Dialog {
actions: [
Kirigami.Action {
- text: i18nc("@action:intoolbar Message this user directly", "Message")
+ text: root.connection.directChatExists(root.user) ? i18nc("@action:intoolbar Open existing direct message", "Open Chat") : i18nc("@action:intoolbar Message this user directly", "Start Chat")
icon.name: "document-send-symbolic"
visible: !root.isSelf