diff --git a/src/gui/Pages/Chat/Timeline/EventDelegate.qml b/src/gui/Pages/Chat/Timeline/EventDelegate.qml index 2c0e9858..6f29ef80 100644 --- a/src/gui/Pages/Chat/Timeline/EventDelegate.qml +++ b/src/gui/Pages/Chat/Timeline/EventDelegate.qml @@ -72,7 +72,8 @@ HColumnLayout { chat.userId, "get_event_profiles", [chat.roomId, model.id], - () => { fetchProfilesFuture = null } + // The if avoids segfault if eventDelegate is already destroyed + () => { if (eventDelegate) fetchProfilesFuture = null } ) Component.onDestruction: