aboutsummaryrefslogtreecommitdiff
path: root/qml/Message.qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-06-06 17:29:27 +0300
committerlink2xt <link2xt@testrun.org>2021-06-06 17:29:27 +0300
commit673447241e20dff4bfe7ddb13805a5bd6e47a5ce (patch)
treea6f74c501738938f78ec0fab470c205baf80a187 /qml/Message.qml
parent3d2729ea467bf59bfed1522f17bf53841d140640 (diff)
downloadkdeltachat-673447241e20dff4bfe7ddb13805a5bd6e47a5ce.tar.gz
kdeltachat-673447241e20dff4bfe7ddb13805a5bd6e47a5ce.zip
Allow to open deaddrop chat, but do not mark it as seen or noticed
Diffstat (limited to 'qml/Message.qml')
-rw-r--r--qml/Message.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/qml/Message.qml b/qml/Message.qml
index c3f5b62..21b3959 100644
--- a/qml/Message.qml
+++ b/qml/Message.qml
@@ -30,7 +30,11 @@ RowLayout {
// Only try to mark fresh and noticed messages as seen to
// avoid unnecessary database calls when viewing an already read chat.
if ([10, 13].includes(messageObject.message.state)) {
- messageObject.context.markseenMsgs([messageObject.message.id])
+ // Do not mark DC_CHAT_ID_DEADDROP messages as seen to
+ // avoid contact request chat disappearing from chatlist.
+ if (messageObject.chatId != 1) {
+ messageObject.context.markseenMsgs([messageObject.message.id])
+ }
}
}