fix: hide usernames on 1:1 chats

This commit is contained in:
Richard Ramos 2020-07-23 12:17:14 -04:00 committed by Iuri Matias
parent adde2e2017
commit cc735aec6b
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ Item {
UserImage { UserImage {
id: chatImage id: chatImage
visible: isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser visible: chatsModel.activeChannel.chatType !== Constants.chatTypeOneToOne && isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: Style.current.padding anchors.leftMargin: Style.current.padding
anchors.top: dateGroupLbl.visible ? dateGroupLbl.bottom : parent.top anchors.top: dateGroupLbl.visible ? dateGroupLbl.bottom : parent.top
@ -27,7 +27,7 @@ Item {
UsernameLabel { UsernameLabel {
id: chatName id: chatName
visible: isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser visible: chatsModel.activeChannel.chatType !== Constants.chatTypeOneToOne && isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser
text: userName text: userName
anchors.leftMargin: 20 anchors.leftMargin: 20
anchors.top: dateGroupLbl.visible ? dateGroupLbl.bottom : parent.top anchors.top: dateGroupLbl.visible ? dateGroupLbl.bottom : parent.top