mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Fix loaded member count
This commit is contained in:
parent
73d902611d
commit
f30c3db860
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -58,5 +58,5 @@ private:
|
|||
QVector<QPair<RoomMember, QString>> m_memberList;
|
||||
QString room_id_;
|
||||
RoomInfo info_;
|
||||
int numUsersLoaded_;
|
||||
int numUsersLoaded_{0};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue