Files
guru/net-im/nheko/files/nheko-0.11.3-fix-explicit-optional-construction.patch
tastytea 95615d9127 net-im/nheko: fix building with gcc-13
Tested-by: Anders from the Nheko matrix room
Signed-off-by: tastytea <gentoo@tastytea.de>
2023-05-01 10:43:30 +02:00

25 lines
894 B
Diff

# upstream commit: <https://github.com/Nheko-Reborn/nheko/commit/d7c10ae>
From d7c10ae90417fcbb7f81edd4e40d89e91436244b Mon Sep 17 00:00:00 2001
From: Nicolas Werner <nicolas.werner@hotmail.de>
Date: Fri, 24 Mar 2023 19:48:47 +0100
Subject: [PATCH] Fix explicit optional construction on gcc13
---
src/timeline/EventStore.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/timeline/EventStore.cpp b/src/timeline/EventStore.cpp
index 3c214dcbe..dd0e920de 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;