From 070d579bc2d78a8cda37fdbc1477124914783b39 Mon Sep 17 00:00:00 2001 From: James Graham Date: Sat, 30 Sep 2023 20:58:46 +0100 Subject: [PATCH] Restore the show author functionality to bubble --- src/qml/Bubble.qml | 6 ++++++ src/qml/MessageDelegate.qml | 1 + 2 files changed, 7 insertions(+) diff --git a/src/qml/Bubble.qml b/src/qml/Bubble.qml index 584f0acc4..2281ee37c 100644 --- a/src/qml/Bubble.qml +++ b/src/qml/Bubble.qml @@ -40,6 +40,11 @@ QQC2.Control { */ property var author + /** + * @brief Whether the author should be shown. + */ + required property bool showAuthor + /** * @brief The timestamp of the message. */ @@ -133,6 +138,7 @@ QQC2.Control { contentItem: ColumnLayout { RowLayout { Layout.maximumWidth: root.maxContentWidth + visible: root.showAuthor QQC2.Label { Layout.fillWidth: true text: root.author.displayName diff --git a/src/qml/MessageDelegate.qml b/src/qml/MessageDelegate.qml index 49260f48f..610d0a8c0 100644 --- a/src/qml/MessageDelegate.qml +++ b/src/qml/MessageDelegate.qml @@ -394,6 +394,7 @@ TimelineDelegate { ] author: root.author + showAuthor: root.showAuthor || root.alwaysShowAuthor time: root.time timeString: root.timeString