Click on account with 0 rooms → AddChat page
This commit is contained in:
parent
5373d19c83
commit
4f9e320074
|
@ -18,6 +18,7 @@ HButton {
|
|||
property real contentOpacity: 1
|
||||
|
||||
property alias contextMenu: contextMenuLoader.sourceComponent
|
||||
readonly property alias contextMenuLoader: contextMenuLoader
|
||||
|
||||
|
||||
Behavior on topPadding { HNumberAnimation {} }
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user