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()); auto members = cache::getMembers(room_id_.toStdString(), rowCount());
addUsers(members); addUsers(members);
numUsersLoaded_ = members.size(); numUsersLoaded_ += members.size();
emit numUsersLoadedChanged(); emit numUsersLoadedChanged();
} }

View file

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