Fix loaded member count

pull/595/head
Loren Burkholder 4 years ago
parent 73d902611d
commit f30c3db860
  1. 2
      src/MemberList.cpp
  2. 2
      src/MemberList.h

@ -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…
Cancel
Save