1 files changed, 3 insertions, 2 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp
index 81f2eb9c..0b7a7b1b 100644
--- a/src/timeline/EventStore.cpp
+++ b/src/timeline/EventStore.cpp
@@ -43,8 +43,9 @@ EventStore::EventStore(std::string room_id, QObject *)
this,
&EventStore::eventFetched,
this,
- [this](
- std::string id, std::string relatedTo, mtx::events::collections::TimelineEvents timeline) {
+ [this](const std::string &id,
+ const std::string &relatedTo,
+ mtx::events::collections::TimelineEvents timeline) {
cache::client()->storeEvent(room_id_, id, {timeline});
if (!relatedTo.empty()) {
|