mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix nullopt when iterating reactions
This commit is contained in:
parent
51964c4fd7
commit
abff61bb6c
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue