summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-10-03 17:23:59 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-10-03 17:23:59 +0200
commitabff61bb6cc69f93e9a571375489b22e72b072ab (patch)
tree0710c8c02e386e451db7477e519d57900c165c2a /src
parentClean up verification pages a bit (diff)
downloadnheko-abff61bb6cc69f93e9a571375489b22e72b072ab.tar.xz
Fix nullopt when iterating reactions
Diffstat (limited to 'src')
-rw-r--r--src/timeline/EventStore.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp

index 298e0d18..29b3c239 100644 --- a/src/timeline/EventStore.cpp +++ b/src/timeline/EventStore.cpp
@@ -390,7 +390,8 @@ EventStore::reactions(const std::string &event_id) continue; if (auto reaction = std::get_if<mtx::events::RoomEvent<mtx::events::msg::Reaction>>( - related_event)) { + related_event); + reaction && reaction->content.relates_to.key) { auto &agg = aggregation[reaction->content.relates_to.key.value()]; if (agg.count == 0) {