Close room if it is opened while leaving it

This commit is contained in:
Tobias Fella
2021-04-02 16:16:44 +02:00
parent 4adc1fc031
commit 662c570371

View File

@@ -44,7 +44,12 @@ Menu {
MenuItem {
text: i18n("Leave Room")
onTriggered: room.forget()
onTriggered: {
if(roomManager.currentRoom == root.room) {
pageStack.pop()
}
room.forget()
}
}
onClosed: destroy()