fix(StatusChatListItem): ensure public chat names are prefixed with '#'
Closes #191
This commit is contained in:
parent
a98bae48dd
commit
141872c2a5
|
@ -678,7 +678,7 @@ Rectangle {
|
|||
}
|
||||
ListElement {
|
||||
chatId: "1"
|
||||
name: "#status-desktop"
|
||||
name: "status-desktop"
|
||||
chatType: StatusChatListItem.Type.PublicChat
|
||||
muted: false
|
||||
hasUnreadMessages: true
|
||||
|
|
|
@ -145,7 +145,10 @@ Rectangle {
|
|||
anchors.leftMargin: statusIcon.visible ? 1 : 8
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
text: statusChatListItem.name
|
||||
text: statusChatListItem.type === StatusChatListItem.Type.PublicChat &&
|
||||
!statusChatListItem.name.startsWith("#") ?
|
||||
"#" + statusChatListItem.name :
|
||||
statusChatListItem.name
|
||||
color: {
|
||||
if (statusChatListItem.muted && !sensor.containsMouse && !statusChatListItem.highlighted) {
|
||||
return Theme.palette.directColor5
|
||||
|
|
Loading…
Reference in New Issue