support for hidden read receipts
This commit is contained in:
parent
9cb5f317c6
commit
05f7e47a9f
2 changed files with 16 additions and 8 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue