Make it possible to start a new chat from NewConversation page

parent 4f24ef5d
......@@ -45,6 +45,14 @@ Kirigami.ScrollablePage {
}
}
Connections {
target: root
onStartChat: {
mainModel.startChat(personUri)
}
}
ListView {
anchors.fill: parent
clip: true
......
......@@ -58,7 +58,7 @@ Kirigami.ScrollablePage {
}
onContactClicked: {
root.requestedChannel = personUri;
root.startChat(personUri)
}
}
}
......@@ -28,7 +28,7 @@ Kirigami.ApplicationWindow {
height: 800
visible: true
property string requestedChannel
signal startChat(string personUri)
globalDrawer: Kirigami.GlobalDrawer {
title: "SpaceBar"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment