mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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());
|
auto members = cache::getMembers(room_id_.toStdString(), rowCount());
|
||||||
addUsers(members);
|
addUsers(members);
|
||||||
numUsersLoaded_ = members.size();
|
numUsersLoaded_ += members.size();
|
||||||
emit numUsersLoadedChanged();
|
emit numUsersLoadedChanged();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue