Remove unused parameter

This commit is contained in:
Tobias Fella
2021-06-30 21:33:26 +02:00
parent 84bc207174
commit 7411447f22
2 changed files with 3 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
endInsertRows();
if (!m_lastReadEventIndex.isValid()) {
// no read marker, so see if we need to create one.
moveReadMarker(QString(), m_currentRoom->readMarkerEventId());
moveReadMarker(m_currentRoom->readMarkerEventId());
}
if (biggest < m_currentRoom->maxTimelineIndex()) {
auto rowBelowInserted = m_currentRoom->maxTimelineIndex() - biggest + timelineBaseIndex() - 1;
@@ -230,7 +230,7 @@ void MessageEventModel::refreshEventRoles(int row, const QVector<int> &roles)
Q_EMIT dataChanged(idx, idx, roles);
}
void MessageEventModel::moveReadMarker(const QString &fromEventId, const QString &toEventId)
void MessageEventModel::moveReadMarker(const QString &toEventId)
{
const auto timelineIt = m_currentRoom->findInTimeline(toEventId);
if (timelineIt == m_currentRoom->timelineEdge()) {