summary refs log tree commit diff
path: root/src/timeline/EventStore.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 07:04:30 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-12-29 07:04:30 +0100
commit4d54876ea41403ae2375f6e67a04e31a5c1eec0c (patch)
tree540d95ed65fc3e1c466bf62cca021ad6b56d78b6 /src/timeline/EventStore.cpp
parentReduce allocations for accessing event members (diff)
downloadnheko-4d54876ea41403ae2375f6e67a04e31a5c1eec0c.tar.xz
Pretty up code with fewer allocations
Diffstat (limited to 'src/timeline/EventStore.cpp')
-rw-r--r--src/timeline/EventStore.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp

index 96ed0241..2e439320 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp
@@ -108,7 +108,7 @@ EventStore::EventStore(std::string room_id, QObject *) std::visit( [this](const auto &e) { const auto &txn_id = e.event_id; - this->current_txn = txn_id; + this->current_txn = txn_id; if (txn_id.empty() || txn_id[0] != 'm') { nhlog::ui()->debug("Invalid txn id '{}'", txn_id); @@ -451,7 +451,7 @@ EventStore::edits(const std::string &event_id) std::holds_alternative<mtx::events::RoomEvent<mtx::events::msg::Redacted>>(*original_event)) return {}; - const auto &original_sender = mtx::accessors::sender(*original_event); + const auto &original_sender = mtx::accessors::sender(*original_event); const auto &original_relations = mtx::accessors::relations(*original_event); std::vector<mtx::events::collections::TimelineEvents> edits;