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

Joshua Goins <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit b279d77f7da49986dc2ad7f3e0d9bb207e2953e6 by Joshua Goins.
Committed on 24/07/2026 at 20:14.
Pushed by redstrate into branch 'release/26.08'.

Don't reset the ReadMarkerModel twice in quick succession

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

(cherry picked from commit f7e15b5323671cf1d7523a631c2f3e5832b3f640)

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

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

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.