fix(ChatHeaderContentView): don't display "Contact" subtitle

for 1-to1 chats

Fixes: #7419
This commit is contained in:
Lukáš Tinkl 2022-09-19 16:26:27 +02:00 committed by Lukáš Tinkl
parent 91d80541be
commit c7c77b52eb
2 changed files with 1 additions and 5 deletions

@ -1 +1 @@
Subproject commit d892a842277dd78199b608c40da297a73de24c91
Subproject commit 3202294a119f96825c1bde6b9c6c378015e5d1f3

View File

@ -259,10 +259,6 @@ RowLayout {
// In some moment in future this should be part of the backend logic.
// (once we add transaltion on the backend side)
switch (chatContentModule.chatDetails.type) {
case Constants.chatType.oneToOne:
return (chatContentModule.isMyContact(chatContentModule.chatDetails.id) ?
qsTr("Contact") :
qsTr("Not a contact"))
case Constants.chatType.publicChat:
return qsTr("Public chat")
case Constants.chatType.privateGroupChat: