Fix login

This commit is contained in:
Nicolas Werner 2020-10-24 18:07:14 +02:00
parent 592bf42640
commit 3d7bb22df4

View file

@ -2284,7 +2284,7 @@ std::optional<MemberInfo>
Cache::getMember(const std::string &room_id, const std::string &user_id)
{
try {
auto txn = lmdb::txn::begin(env_);
auto txn = lmdb::txn::begin(env_, nullptr, MDB_RDONLY);
auto membersdb = getMembersDb(txn, room_id);