From 05f7e47a9fe7710973ae59fb7f42609a837b93e2 Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 20 Feb 2022 12:00:00 +0000 Subject: support for hidden read receipts --- src/timeline/TimelineModel.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/timeline/TimelineModel.cpp') diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp index fe92fcf7..64cff6b8 100644 --- a/src/timeline/TimelineModel.cpp +++ b/src/timeline/TimelineModel.cpp @@ -1077,12 +1077,16 @@ TimelineModel::setCurrentIndex(int index) void TimelineModel::readEvent(const std::string &id) { - http::client()->read_event(room_id_.toStdString(), id, [this](mtx::http::RequestErr err) { - if (err) { - nhlog::net()->warn( - "failed to read_event ({}, {})", room_id_.toStdString(), currentId.toStdString()); - } - }); + http::client()->read_event( + room_id_.toStdString(), + id, + [this](mtx::http::RequestErr err) { + if (err) { + nhlog::net()->warn( + "failed to read_event ({}, {})", room_id_.toStdString(), currentId.toStdString()); + } + }, + !UserSettings::instance()->readReceipts()); } QString -- cgit 1.5.1