Only override the DelegateType when showing hidden messages
(cherry picked from commit 031d69d996)
This commit is contained in:
committed by
Tobias Fella
parent
8517636485
commit
eba34b19ad
@@ -79,7 +79,7 @@ bool MessageFilterModel::eventIsVisible(int sourceRow, const QModelIndex &source
|
|||||||
|
|
||||||
QVariant MessageFilterModel::data(const QModelIndex &index, int role) const
|
QVariant MessageFilterModel::data(const QModelIndex &index, int role) const
|
||||||
{
|
{
|
||||||
if (role == MessageEventModel::DelegateTypeRole) {
|
if (role == MessageEventModel::DelegateTypeRole && NeoChatConfig::self()->showAllEvents()) {
|
||||||
if (!eventIsVisible(index.row(), index.parent())) {
|
if (!eventIsVisible(index.row(), index.parent())) {
|
||||||
return DelegateType::Other;
|
return DelegateType::Other;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user