Fix reactions sometimes not showing up
We need to adjust for the readmarker in the model
This commit is contained in:
@@ -296,6 +296,9 @@ int MessageEventModel::refreshEventRoles(const QString &id, const QVector<int> &
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
row = int(timelineIt - m_currentRoom->messageEvents().rbegin()) + timelineBaseIndex();
|
row = int(timelineIt - m_currentRoom->messageEvents().rbegin()) + timelineBaseIndex();
|
||||||
|
if (data(index(row, 0), EventTypeRole).toInt() == ReadMarker || data(index(row, 0), EventTypeRole).toInt() == Other) {
|
||||||
|
row++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
refreshEventRoles(row, roles);
|
refreshEventRoles(row, roles);
|
||||||
return row;
|
return row;
|
||||||
|
|||||||
Reference in New Issue
Block a user