Skip to content
Snippets Groups Projects
Commit cc6693af authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Close currently open room when it is tapped again

parent 9f742fe2
No related branches found
No related tags found
No related merge requests found
Pipeline #1559 passed
......@@ -190,7 +190,12 @@ Page {
TapHandler {
margin: -Nheko.paddingSmall
onSingleTapped: Rooms.setCurrentRoom(roomId)
onSingleTapped: {
if (!Rooms.currentRoom || Rooms.currentRoom.roomId !== roomId)
Rooms.setCurrentRoom(roomId);
else
Rooms.resetCurrentRoom();
}
onLongPressed: {
if (!isInvite)
roomContextMenu.show(roomId, tags);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment