diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-31 08:31:04 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-07-31 11:00:34 +0900 |
commit | a16b8bcb89738d7efff868105f037ce066263dd8 (patch) | |
tree | 82581f64ed593ca1e46d1f16f5f3ebc1ba69850d /examples | |
parent | b38d48e5bd2764568539089b248d0c3683783aa8 (diff) | |
download | libquotient-a16b8bcb89738d7efff868105f037ce066263dd8.tar.gz libquotient-a16b8bcb89738d7efff868105f037ce066263dd8.zip |
QMCTest::loadingMembers(): find a room by alias
...now that #264 is closed. Also, it gets the newest
#quotient:matrix.org rather than the old upgraded room.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/qmc-example.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp index bd9190b9..e97c7812 100644 --- a/examples/qmc-example.cpp +++ b/examples/qmc-example.cpp @@ -180,10 +180,8 @@ void QMCTest::doTests() void QMCTest::loadMembers() { running.push_back("Loading members"); - // The dedicated qmc-test room is too small to test - // lazy-loading-then-full-loading; use #qmatrixclient:matrix.org instead. - // TODO: #264 - auto* r = c->room(QStringLiteral("!PCzUtxtOjUySxSelof:matrix.org")); + auto* r = c->roomByAlias(QStringLiteral("#quotient:matrix.org"), + JoinState::Join); if (!r) { cout << "#test:matrix.org is not found in the test user's rooms" << endl; |