From 80ee5e9356ef6c792820052cced585078f7ee694 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 28 Feb 2022 22:28:06 +0000 Subject: [PATCH] Apply 1 suggestion(s) to 1 file(s) --- imports/NeoChat/Page/RoomPage.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 5845ecf3a..5e4efcea4 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -41,10 +41,8 @@ Kirigami.ScrollablePage { if(pageStack.lastItem == page) { pageStack.pop() } - } else { - if(page.currentRoom.isInvite) { - page.currentRoom.clearInvitationNotification(); - } + } else if (page.currentRoom.isInvite) { + page.currentRoom.clearInvitationNotification(); } } }