summary refs log tree commit diff
path: root/src/Cache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Cache.cpp')
-rw-r--r--src/Cache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index 5cb87a2f..809d5e17 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -3251,7 +3251,7 @@ Cache::pendingEvents(const std::string &room_id) std::optional<mtx::events::collections::TimelineEvent> Cache::firstPendingMessage(const std::string &room_id) { - auto txn = ro_txn(env_); + auto txn = lmdb::txn::begin(env_); auto pending = getPendingMessagesDb(txn, room_id); try {