summary refs log tree commit diff
path: root/src/timeline/EventStore.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/EventStore.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 'src/timeline/EventStore.cpp')
-rw-r--r--src/timeline/EventStore.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp

index 78920ac4..8e244f42 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp
@@ -16,6 +16,7 @@ #include "EventAccessors.h" #include "Logging.h" #include "MatrixClient.h" +#include "UserSettingsPage.h" #include "Utils.h" Q_DECLARE_METATYPE(Reaction) @@ -220,11 +221,14 @@ EventStore::EventStore(std::string room_id, QObject *) } http::client()->read_event( - room_id_, event_id, [this, event_id](mtx::http::RequestErr err) { + room_id_, + event_id, + [this, event_id](mtx::http::RequestErr err) { if (err) { nhlog::net()->warn("failed to read_event ({}, {})", room_id_, event_id); } - }); + }, + !UserSettings::instance()->readReceipts()); auto idx = idToIndex(event_id);