summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorLcsTen <lcs10.twinoid@gmail.com>2023-03-18 12:46:44 +0100
committerLcsTen <lcs10.twinoid@gmail.com>2023-03-18 13:07:08 +0100
commitb3b5b6b3749f05a89ce3d2360ba9f0002f81a09e (patch)
tree25e21ca1510f86b176bd580949d7110952367e38 /resources
parentShow an appropriate hint if the room is inaccessible (diff)
downloadnheko-b3b5b6b3749f05a89ce3d2360ba9f0002f81a09e.tar.xz
Check isPreviewFetched property for hints
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml
index c06b47c2..c53a7415 100644
--- a/resources/qml/TimelineView.qml
+++ b/resources/qml/TimelineView.qml
@@ -211,7 +211,7 @@ Item {
             Layout.alignment: Qt.AlignHCenter
 
             MatrixText {
-                text: preview.roomName == "" ? qsTr("No preview available") : preview.roomName
+                text: !roomPreview.isFetched ? qsTr("No preview available") : preview.roomName
                 font.pixelSize: 24
             }
 
@@ -252,7 +252,7 @@ Item {
             Layout.rightMargin: Nheko.paddingLarge
 
             TextArea {
-                text: preview.roomName != "" ? TimelineManager.escapeEmoji(preview.roomTopic) : qsTr("This room is possibly inaccessible. If this room is private, you should remove it from the child list of this space.")
+                text: roomPreview.isFetched ? TimelineManager.escapeEmoji(preview.roomTopic) : qsTr("This room is possibly inaccessible. If this room is private, you should remove it from the child list of this space.")
                 wrapMode: TextEdit.WordWrap
                 textFormat: TextEdit.RichText
                 readOnly: true