diff --git a/ui/app/AppLayouts/Chat/views/ChatContentView.qml b/ui/app/AppLayouts/Chat/views/ChatContentView.qml index 6c121e57a8..1a3a35f53e 100644 --- a/ui/app/AppLayouts/Chat/views/ChatContentView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatContentView.qml @@ -106,18 +106,18 @@ ColumnLayout { chatContentModule.chatDetails.type !== Constants.chatType.communityChat } chatInfoButton.onClicked: { - // Not Refactored Yet - // switch (chatContentRoot.rootStore.chatsModelInst.channelView.activeChannel.chatType) { - // case Constants.chatType.privateGroupChat: - // openPopup(groupInfoPopupComponent, { - // channelType: GroupInfoPopup.ChannelType.ActiveChannel, - // channel: chatContentRoot.rootStore.chatsModelInst.channelView.activeChannel - // }) - // break; - // case Constants.chatType.oneToOne: - // openProfilePopup(chatContentRoot.rootStore.chatsModelInst.channelView.activeChannel.id) - // break; - // } + switch (chatContentModule.chatDetails.type) { + case Constants.chatType.privateGroupChat: + // Not Refactored Yet + // openPopup(groupInfoPopupComponent, { + // channelType: GroupInfoPopup.ChannelType.ActiveChannel, + // channel: chatContentRoot.rootStore.chatsModelInst.channelView.activeChannel + // }) + break; + case Constants.chatType.oneToOne: + Global.openProfilePopup(chatContentModule.chatDetails.id) + break; + } } membersButton.visible: { diff --git a/ui/app/AppLayouts/Chat/views/ChatContextMenuView.qml b/ui/app/AppLayouts/Chat/views/ChatContextMenuView.qml index 39960711d0..47e5092c13 100644 --- a/ui/app/AppLayouts/Chat/views/ChatContextMenuView.qml +++ b/ui/app/AppLayouts/Chat/views/ChatContextMenuView.qml @@ -221,7 +221,7 @@ StatusPopupMenu { close() } onConfirmButtonClicked: { - if(root.isCommunityChat || root.chatType === Constants.chatType.oneToOne) + if(root.isCommunityChat) root.deleteChat(root.chatId) else root.leaveChat(root.chatId)