diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-27 18:33:51 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-12-27 19:00:22 +0100 |
commit | d6c2622b0cdc33ad272542ab611c15de07202520 (patch) | |
tree | 042adbf3b8cf55161d9a6649423c20f109dfbb5f /lib/connection.cpp | |
parent | 58e260ef9b081344db8b375d20dbbf015350a3c8 (diff) | |
download | libquotient-d6c2622b0cdc33ad272542ab611c15de07202520.tar.gz libquotient-d6c2622b0cdc33ad272542ab611c15de07202520.zip |
More comments/documentation
Notably, recommend using loginFlowsChanged() rather than
homeserverChanged() to detect when a Connection object is ready for
a login sequence. Related: #427.
(cherry picked from commit 8981c5451ac378f16d5b57d7460d053e2cbc666e)
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r-- | lib/connection.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp index b037bf49..aae4e94b 100644 --- a/lib/connection.cpp +++ b/lib/connection.cpp @@ -345,12 +345,11 @@ void Connection::loginWithToken(const QByteArray& loginToken, loginToken, deviceId, initialDeviceName); } -void Connection::assumeIdentity(const QString& userId, - const QString& accessToken, +void Connection::assumeIdentity(const QString& mxId, const QString& accessToken, const QString& deviceId) { - checkAndConnect(userId, - [=] { d->assumeIdentity(userId, accessToken, deviceId); }); + checkAndConnect(mxId, + [=] { d->assumeIdentity(mxId, accessToken, deviceId); }); } void Connection::reloadCapabilities() |