summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-07-17 18:24:04 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-07-20 21:47:54 -0400
commitf30c3db86058f2700a1e2331bb1167d2ebf88f4d (patch)
tree62eb8a5a5f31360e6447500e7341130024a54f17 /src
parentActually set invitees property (diff)
downloadnheko-f30c3db86058f2700a1e2331bb1167d2ebf88f4d.tar.xz
Fix loaded member count
Diffstat (limited to 'src')
-rw-r--r--src/MemberList.cpp2
-rw-r--r--src/MemberList.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/MemberList.cpp b/src/MemberList.cpp

index 7f4dfa99..b2ed82bd 100644 --- a/src/MemberList.cpp +++ b/src/MemberList.cpp
@@ -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(); } diff --git a/src/MemberList.h b/src/MemberList.h
index 80ab834c..aa240b7a 100644 --- a/src/MemberList.h +++ b/src/MemberList.h
@@ -58,5 +58,5 @@ private: QVector<QPair<RoomMember, QString>> m_memberList; QString room_id_; RoomInfo info_; - int numUsersLoaded_; + int numUsersLoaded_{0}; };