aboutsummaryrefslogtreecommitdiff
path: root/qml/ChatlistPage.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-06 17:29:15 +0300
committerlink2xt <link2xt@testrun.org>2021-06-06 17:29:15 +0300
commit4c05ea65bc643c4fff092b98afa769fa5fb07dbb (patch)
tree0b957d825cd5fad794a9b899fdd347ddbfe5c4ba /qml/ChatlistPage.qml
parent337916c8e4854cd6f4f157a901788d633e8917f8 (diff)
downloadkdeltachat-4c05ea65bc643c4fff092b98afa769fa5fb07dbb.tar.gz
kdeltachat-4c05ea65bc643c4fff092b98afa769fa5fb07dbb.zip
Switch to archived chats when archived chat link is clicked
There is currently no way to switch back, a workaround is to switch account.
Diffstat (limited to 'qml/ChatlistPage.qml')
-rw-r--r--qml/ChatlistPage.qml4
1 files changed, 3 insertions, 1 deletions
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();
}
}