From 70691fb295045eb41162fdc6f59d6620d6fe2ecc Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 2 Feb 2021 20:39:04 +0100 Subject: [PATCH] Fix hiding replaced events https://invent.kde.org/network/neochat/-/commit/5993c1f6 accidentally switched from SpecialMarksRole to MessageRole which is not only slower but also completely wrong --- src/messagefiltermodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messagefiltermodel.cpp b/src/messagefiltermodel.cpp index 50f8e5a41..d9439f779 100644 --- a/src/messagefiltermodel.cpp +++ b/src/messagefiltermodel.cpp @@ -16,7 +16,7 @@ bool MessageFilterModel::filterAcceptsRow(int sourceRow, const QModelIndex &sour return false; } - if (index.data(MessageEventModel::MessageRole).toInt() == 0x10) { + if (index.data(MessageEventModel::SpecialMarksRole).toInt() == EventStatus::Replaced) { return false; }