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
This commit is contained in:
Nicolas Fella
2021-02-02 20:39:04 +01:00
parent 7aedfd0e17
commit 70691fb295

View File

@@ -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;
}