Remove unused parameter
This commit is contained in:
@@ -144,7 +144,7 @@ void MessageEventModel::setRoom(NeoChatRoom *room)
|
|||||||
endInsertRows();
|
endInsertRows();
|
||||||
if (!m_lastReadEventIndex.isValid()) {
|
if (!m_lastReadEventIndex.isValid()) {
|
||||||
// no read marker, so see if we need to create one.
|
// 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()) {
|
if (biggest < m_currentRoom->maxTimelineIndex()) {
|
||||||
auto rowBelowInserted = m_currentRoom->maxTimelineIndex() - biggest + timelineBaseIndex() - 1;
|
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);
|
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);
|
const auto timelineIt = m_currentRoom->findInTimeline(toEventId);
|
||||||
if (timelineIt == m_currentRoom->timelineEdge()) {
|
if (timelineIt == m_currentRoom->timelineEdge()) {
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ private:
|
|||||||
void refreshLastUserEvents(int baseTimelineRow);
|
void refreshLastUserEvents(int baseTimelineRow);
|
||||||
void refreshEventRoles(int row, const QVector<int> &roles = {});
|
void refreshEventRoles(int row, const QVector<int> &roles = {});
|
||||||
int refreshEventRoles(const QString &eventId, const QVector<int> &roles = {});
|
int refreshEventRoles(const QString &eventId, const QVector<int> &roles = {});
|
||||||
void moveReadMarker(const QString &fromEventId, const QString &toEventId);
|
void moveReadMarker(const QString &toEventId);
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void roomChanged();
|
void roomChanged();
|
||||||
|
|||||||
Reference in New Issue
Block a user