fix: fix top bar not showing group chat name
This commit is contained in:
parent
7dc3bf7e87
commit
2a4780f379
|
@ -29,7 +29,12 @@ Rectangle {
|
|||
id: chatInfoButton
|
||||
StatusChatInfoButton {
|
||||
chatId: chatsModel.activeChannel.id
|
||||
chatName: chatsModel.userNameOrAlias(chatsModel.activeChannel.id)
|
||||
chatName: {
|
||||
if (chatsModel.activeChannel.chatType === Constants.chatTypePrivateGroupChat) {
|
||||
return chatsModel.activeChannel.name
|
||||
}
|
||||
chatsModel.userNameOrAlias(chatsModel.activeChannel.id)
|
||||
}
|
||||
chatType: chatsModel.activeChannel.chatType
|
||||
identicon: chatsModel.activeChannel.identicon
|
||||
muted: chatsModel.activeChannel.muted
|
||||
|
|
Loading…
Reference in New Issue