summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-12-16 17:24:52 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-12-16 17:24:52 +0100
commit1a9f7860d41fe14ca38bc9a3c99931dceae95679 (patch)
tree5ba8e916eab0abc80c571373565a2c738130f959
parentBump mtxclient version (diff)
downloadnheko-1a9f7860d41fe14ca38bc9a3c99931dceae95679.tar.xz
Fix sending confetti
-rw-r--r--CMakeLists.txt2
-rw-r--r--io.github.NhekoReborn.Nheko.yaml2
-rw-r--r--src/Cache.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt

index 4a7e333f..3af559a6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -595,7 +595,7 @@ if(USE_BUNDLED_MTXCLIENT) FetchContent_Declare( MatrixClient GIT_REPOSITORY https://github.com/Nheko-Reborn/mtxclient.git - GIT_TAG 36619300be0dd8127b71119b443a07fffe4f53a3 + GIT_TAG 6252a4a902053fb227b61e65e76c1c29bc905a45 ) set(BUILD_LIB_EXAMPLES OFF CACHE INTERNAL "") set(BUILD_LIB_TESTS OFF CACHE INTERNAL "") diff --git a/io.github.NhekoReborn.Nheko.yaml b/io.github.NhekoReborn.Nheko.yaml
index 3b735b64..a150f97b 100644 --- a/io.github.NhekoReborn.Nheko.yaml +++ b/io.github.NhekoReborn.Nheko.yaml
@@ -182,7 +182,7 @@ modules: buildsystem: cmake-ninja name: mtxclient sources: - - commit: 36619300be0dd8127b71119b443a07fffe4f53a3 + - commit: 6252a4a902053fb227b61e65e76c1c29bc905a45 #tag: v0.8.2 type: git url: https://github.com/Nheko-Reborn/mtxclient.git 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 {