Save read receipts

This commit is contained in:
Konstantinos Sideris 2018-04-21 17:14:16 +03:00
parent 2f00fc51bf
commit 4a2f1af090
4 changed files with 17 additions and 21 deletions

View file

@ -170,7 +170,9 @@ public:
//! There should be only one user id present in a receipt list per room.
//! The user id should be removed from any other lists.
using Receipts = std::map<std::string, std::map<std::string, uint64_t>>;
void updateReadReceipt(const std::string &room_id, const Receipts &receipts);
void updateReadReceipt(lmdb::txn &txn,
const std::string &room_id,
const Receipts &receipts);
//! Retrieve all the read receipts for the given event id and room.
//!