Fix explicit optional construction on gcc13

run-ci
Nicolas Werner 2 years ago
parent 04df2cb87b
commit d7c10ae904
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      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;

Loading…
Cancel
Save