From 4c05ea65bc643c4fff092b98afa769fa5fb07dbb Mon Sep 17 00:00:00 2001 From: link2xt Date: Sun, 6 Jun 2021 17:29:15 +0300 Subject: Switch to archived chats when archived chat link is clicked There is currently no way to switch back, a workaround is to switch account. --- qml/ChatlistPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qml/ChatlistPage.qml') diff --git a/qml/ChatlistPage.qml b/qml/ChatlistPage.qml index e1fb3b9..41c21b3 100644 --- a/qml/ChatlistPage.qml +++ b/qml/ChatlistPage.qml @@ -134,7 +134,9 @@ Kirigami.ScrollablePage { console.log("Error loading chat page: " + chatPageComponent.errorString()) } } else if (chatId == 6) { - console.log("Clicked on archived chat link") + chatlistPage.archivedOnly = true + chatlist.currentIndex = -1 + updateChatlist(); } } -- cgit v1.2.3-70-g09d2