Fix loaded member count

This commit is contained in:
Loren Burkholder 2021-07-17 18:24:04 -04:00
parent 73d902611d
commit f30c3db860
2 changed files with 2 additions and 2 deletions

View file

@ -96,6 +96,6 @@ MemberList::fetchMore(const QModelIndex &)
{
auto members = cache::getMembers(room_id_.toStdString(), rowCount());
addUsers(members);
numUsersLoaded_ = members.size();
numUsersLoaded_ += members.size();
emit numUsersLoadedChanged();
}

View file

@ -58,5 +58,5 @@ private:
QVector<QPair<RoomMember, QString>> m_memberList;
QString room_id_;
RoomInfo info_;
int numUsersLoaded_;
int numUsersLoaded_{0};
};