From cc735aec6b1abb11c24580d1e33d07b018d361b7 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 23 Jul 2020 12:17:14 -0400 Subject: [PATCH] fix: hide usernames on 1:1 chats --- .../Chat/ChatColumn/MessageComponents/NormalMessage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml index 230d565732..4879825c05 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/NormalMessage.qml @@ -18,7 +18,7 @@ Item { UserImage { id: chatImage - visible: isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser + visible: chatsModel.activeChannel.chatType !== Constants.chatTypeOneToOne && isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser anchors.left: parent.left anchors.leftMargin: Style.current.padding anchors.top: dateGroupLbl.visible ? dateGroupLbl.bottom : parent.top @@ -27,7 +27,7 @@ Item { UsernameLabel { id: chatName - visible: isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser + visible: chatsModel.activeChannel.chatType !== Constants.chatTypeOneToOne && isMessage && authorCurrentMsg != authorPrevMsg && !isCurrentUser text: userName anchors.leftMargin: 20 anchors.top: dateGroupLbl.visible ? dateGroupLbl.bottom : parent.top