Correct "Empty room" display
This commit is contained in:
parent
81ce4635fc
commit
710dd56109
13
TODO.md
13
TODO.md
|
@ -176,26 +176,25 @@
|
|||
- Fetch all members when using the filter members bar
|
||||
|
||||
- Direct chats category
|
||||
- When inviting someone to direct chat, room is "Empty room" until accepted,
|
||||
it should be the peer's display name instead.
|
||||
- Animate RoomEventDelegate DayBreak apparition
|
||||
- Live-reloading accounts.json
|
||||
|
||||
- nio
|
||||
- RoomMessageMedia info attribute
|
||||
- `AsyncClient.share_group_session`: send device batches concurrently
|
||||
- Running blocking DB function calls in executor
|
||||
- Guard against asyncio OSError Network unreachable
|
||||
- `AsyncClient.share_group_session`: send device batches concurrently
|
||||
|
||||
- RoomMessageMedia and RoomAvatarEvent info attributes
|
||||
- `m.room.aliases` events
|
||||
- MatrixRoom invited members list
|
||||
- When inviting someone to direct chat, room is "Empty room" until accepted,
|
||||
- Left room events after client reboot
|
||||
- `org.matrix.room.preview_urls` events
|
||||
- `m.room.aliases` events
|
||||
- Support "Empty room (was ...)" after peer left
|
||||
- Previewing room without joining
|
||||
|
||||
- get content repo config API
|
||||
- add the `resume()` method
|
||||
- Get content repo config API
|
||||
- Add the `resume()` method
|
||||
|
||||
- See if we can turn all the Error classes into actual exceptions
|
||||
|
||||
|
|
|
@ -713,7 +713,7 @@ class MatrixClient(nio.AsyncClient):
|
|||
|
||||
self.models[Room, self.user_id][room.room_id] = Room(
|
||||
room_id = room.room_id,
|
||||
display_name = room.display_name,
|
||||
display_name = room.display_name or "",
|
||||
avatar_url = room.gen_avatar_url or "",
|
||||
topic = HTML_FILTER.filter_inline(room.topic or ""),
|
||||
inviter_id = inviter,
|
||||
|
|
|
@ -30,7 +30,7 @@ Rectangle {
|
|||
|
||||
HLabel {
|
||||
id: roomName
|
||||
text: chatPage.roomInfo.display_name
|
||||
text: chatPage.roomInfo.display_name || qsTr("Empty room")
|
||||
font.pixelSize: theme.fontSize.big
|
||||
color: theme.chat.roomHeader.name
|
||||
elide: Text.ElideRight
|
||||
|
|
|
@ -37,8 +37,7 @@ HTileDelegate {
|
|||
}
|
||||
|
||||
title.color: theme.sidePane.room.name
|
||||
title.text: model.data.display_name || "<i>Empty room</i>"
|
||||
title.textFormat: model.data.display_name? Text.PlainText : Text.StyledText
|
||||
title.text: model.data.display_name || qsTr("Empty room")
|
||||
|
||||
additionalInfo.children: HIcon {
|
||||
svgName: "invite-received"
|
||||
|
|
Loading…
Reference in New Issue
Block a user