diff --git a/src/gui/Base/HTile/HTile.qml b/src/gui/Base/HTile/HTile.qml index f83ac452..d8783939 100644 --- a/src/gui/Base/HTile/HTile.qml +++ b/src/gui/Base/HTile/HTile.qml @@ -18,6 +18,7 @@ HButton { property real contentOpacity: 1 property alias contextMenu: contextMenuLoader.sourceComponent + readonly property alias contextMenuLoader: contextMenuLoader Behavior on topPadding { HNumberAnimation {} } diff --git a/src/gui/MainPane/AccountsBar.qml b/src/gui/MainPane/AccountsBar.qml index f18f7a36..ce19429a 100644 --- a/src/gui/MainPane/AccountsBar.qml +++ b/src/gui/MainPane/AccountsBar.qml @@ -92,7 +92,11 @@ HColumnLayout { contextMenu: AccountContextMenu { userId: model.id } - onLeftClicked: roomList.goToAccount(model.id) + onLeftClicked: { + model.id in roomList.sectionIndice ? + roomList.goToAccount(model.id) : + pageLoader.showPage("AddChat/AddChat", {userId: model.id}) + } } Layout.fillWidth: true