summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-03-24 19:48:47 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-03-24 19:49:10 +0100
commitd7c10ae90417fcbb7f81edd4e40d89e91436244b (patch)
tree31389a14115897514d4f788010f489fcf888b9df /src
parentMerge pull request #1430 from tastytea/fix-imagepack-texts (diff)
downloadnheko-d7c10ae90417fcbb7f81edd4e40d89e91436244b.tar.xz
Fix explicit optional construction on gcc13
Diffstat (limited to 'src')
-rw-r--r--src/timeline/EventStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp
index 3c214dcb..dd0e920d 100644
--- a/src/timeline/EventStore.cpp
+++ b/src/timeline/EventStore.cpp
@@ -650,7 +650,7 @@ EventStore::get(int idx, bool decrypt)
         if (edits_.empty())
             event = cache::client()->getEvent(room_id_, *event_id);
         else
-            event = {edits_.back()};
+            event = mtx::events::collections::TimelineEvent{edits_.back()};
 
         if (!event)
             return nullptr;