summary refs log tree commit diff
path: root/src/timeline/TimelineModel.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2022-02-22 16:30:23 +0000
committerGitHub <noreply@github.com>2022-02-22 16:30:23 +0000
commit3dfcc4145dd207997c3879233c9dfedc825382e6 (patch)
treeafaee0732613f9d17ea37e7528fb5158cd350f07 /src/timeline/TimelineModel.cpp
parentMerge pull request #955 from sc0w/master (diff)
parentsupport for hidden read receipts (diff)
downloadnheko-3dfcc4145dd207997c3879233c9dfedc825382e6.tar.xz
Merge pull request #952 from symphorien/hidden-read-receipts
support for hidden read receipts
Diffstat (limited to '')
-rw-r--r--src/timeline/TimelineModel.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp

index 43c72e1d..7892c2e4 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