From bf5401753432533b31e7d18519c2031c84e774b7 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 16 Dec 2018 14:10:05 +0900 Subject: Room::getAllMembers: revert off-by-one "bugfix" It actually introduces an off-by-one error; the original code was correct. #qmatrixclient:matrix.org is used instead of #test:matrix.org to check lazy-loading (see https://github.com/matrix-org/synapse/issues/4300) --- examples/qmc-example.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp index 48787e44..5c05d44b 100644 --- a/examples/qmc-example.cpp +++ b/examples/qmc-example.cpp @@ -163,9 +163,9 @@ void QMCTest::loadMembers() { running.push_back("Loading members"); // The dedicated qmc-test room is too small to test - // lazy-loading-then-full-loading; use #test:matrix.org instead. + // lazy-loading-then-full-loading; use #qmatrixclient:matrix.org instead. // TODO: #264 - auto* r = c->room(QStringLiteral("!vfFxDRtZSSdspfTSEr:matrix.org")); + auto* r = c->room(QStringLiteral("!PCzUtxtOjUySxSelof:matrix.org")); if (!r) { cout << "#test:matrix.org is not found in the test user's rooms" << endl; @@ -184,7 +184,7 @@ void QMCTest::loadMembers() r->setDisplayed(); connect(r, &Room::allMembersLoaded, [this,r] { QMC_CHECK("Loading members", - r->memberNames().size() + 1 >= r->joinedCount()); + r->memberNames().size() >= r->joinedCount()); }); } -- cgit v1.2.3