diff --git a/src/qml/UserDetailDialog.qml b/src/qml/UserDetailDialog.qml index 34b3f56e5..b98670abe 100644 --- a/src/qml/UserDetailDialog.qml +++ b/src/qml/UserDetailDialog.qml @@ -221,7 +221,7 @@ Kirigami.Dialog { FormCard.FormButtonDelegate { visible: !root.user.isLocalUser action: Kirigami.Action { - text: root.room.connection.directChatExists(root.user.object) ? i18nc("%1 is the name of the user.", "Chat with %1", root.user.displayName) : i18n("Invite to private chat") + text: root.room.connection.directChatExists(root.user.object) ? i18nc("%1 is the name of the user.", "Chat with %1", root.user.escapedDisplayName) : i18n("Invite to private chat") icon.name: "document-send" onTriggered: { root.room.connection.openOrCreateDirectChat(root.user.object);