diff --git a/src/messageeventmodel.cpp b/src/messageeventmodel.cpp index b005f47b9..06e2c9b12 100644 --- a/src/messageeventmodel.cpp +++ b/src/messageeventmodel.cpp @@ -64,21 +64,6 @@ MessageEventModel::MessageEventModel(QObject *parent) qmlRegisterAnonymousType("org.kde.neochat", 1); qRegisterMetaType(); - QTimer::singleShot(0, this, [this]() { - if (!m_currentRoom) { - return; - } - m_currentRoom->getPreviousContent(50); - connect(this, &QAbstractListModel::rowsInserted, this, [this]() { - if (m_currentRoom->readMarkerEventId().isEmpty()) { - return; - } - const auto it = m_currentRoom->findInTimeline(m_currentRoom->readMarkerEventId()); - if (it == m_currentRoom->historyEdge()) { - m_currentRoom->getPreviousContent(50); - } - }); - }); connect(static_cast(QGuiApplication::instance()), &QGuiApplication::paletteChanged, this, [this] { Q_EMIT dataChanged(index(0, 0), index(rowCount() - 1, 0), {AuthorRole, ReplyRole}); });