Skip to content

Commit

Permalink
qmc-example: Fix the lazy-loading test
Browse files Browse the repository at this point in the history
  • Loading branch information
KitsuneRal committed Dec 13, 2018
1 parent cb5f0f6 commit f72bba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/qmc-example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,15 +167,15 @@ void QMCTest::loadMembers()
// It's not exactly correct because an arbitrary server might not support
// lazy loading; but in the absence of capabilities framework we assume
// it does.
if (r->memberNames().size() < r->joinedCount())
if (r->memberNames().size() >= r->joinedCount())
{
cout << "Lazy loading doesn't seem to be enabled" << endl;
QMC_CHECK("Loading members", false);
return;
}
r->setDisplayed();
connect(r, &Room::allMembersLoaded, [this] {
QMC_CHECK("Loading members", true);
connect(r, &Room::allMembersLoaded, [this,r] {
QMC_CHECK("Loading members", r->memberNames().size() >= r->joinedCount());
});
}

Expand Down

0 comments on commit f72bba6

Please sign in to comment.