diff options
author | link2xt <link2xt@testrun.org> | 2021-03-16 05:25:52 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-03-19 03:13:33 +0300 |
commit | 1b79a5d06f02035db165b7a2c294df1006a503ed (patch) | |
tree | cc0b2b0505c629c3f08832f259285892bda95745 /qml/Message.qml | |
parent | a21b68a39a3acfe2f82df274c51afffcfe60fe1c (diff) | |
download | kdeltachat-1b79a5d06f02035db165b7a2c294df1006a503ed.tar.gz kdeltachat-1b79a5d06f02035db165b7a2c294df1006a503ed.zip |
Mark displayed messages as seen
Diffstat (limited to 'qml/Message.qml')
-rw-r--r-- | qml/Message.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qml/Message.qml b/qml/Message.qml index 2c67cff..6fc0318 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -12,6 +12,8 @@ RowLayout { id: messageObject property DcMessage message + property DcContext context + readonly property DcContact from: context.getContact(message.fromId) readonly property DcMessage quoteMessage: message.quotedMessage readonly property DcContact quoteFrom: quoteMessage ? context.getContact(quoteMessage.fromId) : null @@ -24,6 +26,10 @@ RowLayout { : messageObject.message.fromId > 0 ? messageObject.from.displayName : "" + Component.onCompleted: { + messageObject.context.markseenMsgs([messageObject.message.id]) + } + Rectangle { Layout.preferredWidth: messageContents.width Layout.preferredHeight: messageContents.height |