From ac58f524a8a734e9ea6a8c5acc063891f480d58d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 12 Jun 2023 15:48:17 +0200 Subject: Matrix: add option to disable sending read receipt, comment the example json config file --- src/plugins/Matrix.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/Matrix.cpp') diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 127a664..b2b05e2 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -5456,7 +5456,8 @@ namespace QuickMedia { PluginResult Matrix::set_read_marker(RoomData *room, const std::string &event_id, int64_t event_timestamp) { rapidjson::Document request_data(rapidjson::kObjectType); request_data.AddMember("m.fully_read", rapidjson::StringRef(event_id.c_str()), request_data.GetAllocator()); - request_data.AddMember("m.read", rapidjson::StringRef(event_id.c_str()), request_data.GetAllocator()); + if(QuickMedia::get_config().matrix.send_read_receipts) + request_data.AddMember("m.read", rapidjson::StringRef(event_id.c_str()), request_data.GetAllocator()); rapidjson::StringBuffer buffer; rapidjson::Writer writer(buffer); -- cgit v1.2.3