aboutsummaryrefslogtreecommitdiff
path: root/qml/ChatlistPage.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-06 17:29:05 +0300
committerlink2xt <link2xt@testrun.org>2021-06-06 17:29:05 +0300
commitfa0dfcb64de83dbe397690422ea584961c145940 (patch)
treec24c2c4cc9b77b3f41d49643326cf78b123b4e14 /qml/ChatlistPage.qml
parent0b7723991eb555f08b1910cbbb7834585dff7fa4 (diff)
downloadkdeltachat-fa0dfcb64de83dbe397690422ea584961c145940.tar.gz
kdeltachat-fa0dfcb64de83dbe397690422ea584961c145940.zip
Make it possible to get a list of archived chats
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 a92e7b8..9bc9c5a 100644
--- a/qml/ChatlistPage.qml
+++ b/qml/ChatlistPage.qml
@@ -13,6 +13,8 @@ Kirigami.ScrollablePage {
required property DcContext context
required property DcAccountsEventEmitter eventEmitter
+ property bool archivedOnly: false
+
Connections {
target: chatlistPage.eventEmitter
@@ -51,7 +53,7 @@ Kirigami.ScrollablePage {
}
function updateChatlist() {
- let chatlist = chatlistPage.context.getChatlist()
+ let chatlist = chatlistPage.context.getChatlist(chatlistPage.archivedOnly ? 1 : 0)
// Merge new chatlist with existing one.
// To preserve selected item, we do not simply clear and fill