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/EventStore.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/timeline/EventStore.cpp') 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); -- cgit 1.5.1