From 3b00e14a9d7943fc2a92e86b9bafc65c14b71b73 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 20 Feb 2026 16:16:49 -0500 Subject: [PATCH] Fix the TimelineEnd delegate not appearing when going back in history It was possible to make this appear if you switched rooms while you had all history loaded, but now it should show up naturally. --- src/timeline/models/timelinemodel.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/timeline/models/timelinemodel.cpp b/src/timeline/models/timelinemodel.cpp index 26fe91a87..565bc2e46 100644 --- a/src/timeline/models/timelinemodel.cpp +++ b/src/timeline/models/timelinemodel.cpp @@ -79,10 +79,8 @@ void TimelineBeginningModel::setRoom(NeoChatRoom *room) if (m_room != nullptr) { Quotient::connectUntil(m_room.get(), &Quotient::Room::eventsHistoryJobChanged, this, [this]() { if (m_room && m_room->allHistoryLoaded()) { - // HACK: We have to do it this way because DelegateChooser doesn't update dynamically. - beginRemoveRows({}, 0, 0); - endRemoveRows(); - beginInsertRows({}, 0, 0); + Q_EMIT dataChanged(index(0, 0), index(0, 0), {DelegateTypeRole}); + beginInsertRows({}, 1, 1); endInsertRows(); return true; }