display if user is contact or not in the topbar

This commit is contained in:
Iuri Matias 2020-06-23 08:40:21 -04:00
parent 6a97a2a07f
commit 578277452a
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ Rectangle {
text: {
switch(chatsModel.activeChannel.chatType){
case Constants.chatTypePublic: return qsTr("Public chat")
case Constants.chatTypeOneToOne: return qsTr("TODO: Contact/Not a contact")
case Constants.chatTypeOneToOne: return (profileModel.isAdded(chatsModel.activeChannel.id) ? qsTr("Contact") : qsTr("Not a contact"))
case Constants.chatTypePrivateGroupChat:
let cnt = chatsModel.activeChannel.members.rowCount();
if(cnt > 1) return qsTr("%1 members").arg(cnt);