From 3d7bb22df4a408ab837710f2e44810df975a667c Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 24 Oct 2020 18:07:14 +0200 Subject: [PATCH] Fix login --- src/Cache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index 3ffa9fd2..993fbfe7 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -2284,7 +2284,7 @@ std::optional 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);