mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Show an appropriate hint if the room is inaccessible
This commit is contained in:
parent
9bd7f98528
commit
f186e56121
2 changed files with 2 additions and 2 deletions
|
@ -252,7 +252,7 @@ Item {
|
||||||
Layout.rightMargin: Nheko.paddingLarge
|
Layout.rightMargin: Nheko.paddingLarge
|
||||||
|
|
||||||
TextArea {
|
TextArea {
|
||||||
text: TimelineManager.escapeEmoji(preview.roomTopic)
|
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.")
|
||||||
wrapMode: TextEdit.WordWrap
|
wrapMode: TextEdit.WordWrap
|
||||||
textFormat: TextEdit.RichText
|
textFormat: TextEdit.RichText
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
|
@ -222,7 +222,7 @@ RoomlistModel::data(const QModelIndex &index, int role) const
|
||||||
case Roles::RoomName:
|
case Roles::RoomName:
|
||||||
return tr("No preview available");
|
return tr("No preview available");
|
||||||
case Roles::LastMessage:
|
case Roles::LastMessage:
|
||||||
return QString();
|
return tr("This room is possibly inaccessible");
|
||||||
case Roles::Time:
|
case Roles::Time:
|
||||||
return QString();
|
return QString();
|
||||||
case Roles::Timestamp:
|
case Roles::Timestamp:
|
||||||
|
|
Loading…
Reference in a new issue