From 10b65b78fa8265dbeeb33e755fafcd642b21b514 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Tue, 11 Apr 2023 00:11:46 +0200 Subject: Adapt to the new inherited variant --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/timeline/InputBar.cpp') 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); } } -- cgit 1.5.1