summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-04-11 00:11:46 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-04-11 01:38:46 +0200
commit10b65b78fa8265dbeeb33e755fafcd642b21b514 (patch)
tree937cd43488aa8e938937a79422cd09966422874f /src/timeline/InputBar.cpp
parentMerge pull request #1407 from Nheko-Reborn/ducktyping (diff)
downloadnheko-10b65b78fa8265dbeeb33e755fafcd642b21b514.tar.xz
Adapt to the new inherited variant
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp

index fe8b8e48..879ec7cc 100644 --- a/src/timeline/InputBar.cpp +++ b/src/timeline/InputBar.cpp
@@ -53,7 +53,7 @@ threadFallbackEventId(const std::string &room_id, const std::string &thread_id) for (const auto &[index, event_id] : orderedEvents) { (void)index; if (auto event = cache::client()->getEvent(room_id, event_id)) { - if (mtx::accessors::relations(event->data).thread() == thread_id) + if (mtx::accessors::relations(event.value()).thread() == thread_id) return std::string(event_id); } }