Skip to content

Commit d3814ed

Browse files
committed
???
1 parent 781924e commit d3814ed

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Quotient/connection.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ void Connection::Private::completeSetup(const QString& mxId, bool newLogin,
407407
const std::optional<QString>& deviceId,
408408
const std::optional<QString>& accessToken)
409409
{
410+
qWarning() << "completeSetup";
410411
q->setObjectName(data->userId() % u'/' % data->deviceId());
411412
data->setIdentity(mxId, deviceId.value_or(u""_s), accessToken.value_or(u""_s).toLatin1());
412413
qCDebug(MAIN) << "Using server" << data->baseUrl().toDisplayString()
@@ -423,19 +424,24 @@ void Connection::Private::completeSetup(const QString& mxId, bool newLogin,
423424
q->loadCapabilities();
424425
q->user()->load(); // Load the local user's profile
425426
}
427+
qWarning() << "completeSetup 2";
426428
auto doCompleteSetup = [this, mxId, deviceId, accessToken](){
427429
setupPicklingKey();
430+
qWarning() << "completeSetup 3";
428431

429432
emit q->stateChanged();
430433

434+
qWarning() << useEncryption;
431435
if (useEncryption) {
432436
emit q->encryptionChanged(useEncryption);
433437
emit q->stateChanged();
434438
emit q->ready();
439+
qWarning() << "compelteSetup 4";
435440
emit q->connected();
436441
} else {
437442
qCInfo(E2EE) << "End-to-end encryption (E2EE) support is off for" << q->objectName();
438443
emit q->ready();
444+
qWarning() << "completeSetup 5";
439445
emit q->connected();
440446
}
441447
};

quotest/quotest.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ TestManager::TestManager(int& argc, char** argv)
198198
clog.flush();
199199
// NOLINTEND(cppcoreguidelines-pro-bounds-pointer-arithmetic)
200200

201+
qWarning() << "Connecting to connected";
201202
connect(c, &Connection::connected, this, [this] {
203+
qWarning() << "Connected";
202204
if (QUO_ALARM(c->homeserver().isEmpty() || !c->homeserver().isValid())
203205
|| QUO_ALARM(c->domain() != c->userId().section(u':', 1))) {
204206
clog << "Connection information doesn't look right, "
@@ -252,17 +254,21 @@ TestManager::TestManager(int& argc, char** argv)
252254

253255
void TestManager::setupAndRun()
254256
{
257+
qWarning() << 1;
255258
Q_ASSERT(!c->homeserver().isEmpty() && c->homeserver().isValid());
256259
Q_ASSERT(c->domain() == c->userId().section(u':', 1));
257260
clog << "Connected, server: " << c->homeserver().toDisplayString().toStdString() << '\n'
258261
<< "Access token: " << c->accessToken().toStdString() << endl;
259262

263+
qWarning() << 2;
260264
connect(c, &Connection::loadedRoomState, this, &TestManager::onNewRoom);
261265

262266
c->setLazyLoading(true);
263267

268+
qWarning() << 3;
264269
clog << "Joining " << targetRoomName.toStdString() << endl;
265270
c->joinAndGetRoom(targetRoomName).then(this, [this](Room* room) {
271+
qWarning() << 4;
266272
if (!room) {
267273
clog << "Failed to join the test room" << endl;
268274
finalize();
@@ -965,7 +971,6 @@ void TestManager::finalize(const QString& lastWords)
965971
clog << "Logging out" << endl;
966972
c->logout().then(
967973
this, [this, lastWords] {
968-
//clog << lastWords.toStdString() << endl;
969974
QCoreApplication::exit(!testSuite ? -3
970975
: succeeded.empty() && failed.empty()
971976
&& running.empty()

0 commit comments

Comments
 (0)