fix: fix top bar not showing group chat name

This commit is contained in:
Jonathan Rainville 2021-02-17 15:48:12 -05:00 committed by Iuri Matias
parent 7dc3bf7e87
commit 2a4780f379
1 changed files with 6 additions and 1 deletions

View File

@ -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