[network/neochat] src/timeline/models: Don't reset the ReadMarkerModel twice in quick succession

Tobias Fella <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit f7e15b5323671cf1d7523a631c2f3e5832b3f640 by Tobias Fella, on behalf of Joshua Goins.
Committed on 17/07/2026 at 13:44.
Pushed by tfella into branch 'master'.

Don't reset the ReadMarkerModel twice in quick succession

There's no point in doing it this way, the contents are immediately
overwritten.

M  +0    -4    src/timeline/models/readmarkermodel.cpp

https://invent.kde.org/network/neochat/-/commit/f7e15b5323671cf1d7523a631c2f3e5832b3f640

diff --git a/src/timeline/models/readmarkermodel.cpp b/src/timeline/models/readmarkermodel.cpp
index 4e44eabcf..be02bc4e9 100644
--- a/src/timeline/models/readmarkermodel.cpp
+++ b/src/timeline/models/readmarkermodel.cpp
@@ -24,10 +24,6 @@ ReadMarkerModel::ReadMarkerModel(const QString &eventId, NeoChatRoom *room)
                 return;
             }
 
-            beginResetModel();
-            m_markerIds.clear();
-            endResetModel();
-
             beginResetModel();
             memberIds.removeAll(m_room->localMember().id());
             m_markerIds = memberIds;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.