summary refs log tree commit diff
path: root/include/MatrixClient.h
diff options
context:
space:
mode:
authorjansol <jhs@psonet.com>2017-07-08 14:41:49 +0300
committermujx <mujx@users.noreply.github.com>2017-07-08 14:41:49 +0300
commitf5ba63946b46877111dc48b760f03e98cc10548d (patch)
treef45a65f6fe012dc98afe68e7769ba6171d88a302 /include/MatrixClient.h
parentFix emoji alignment issue (#43) (diff)
downloadnheko-f5ba63946b46877111dc48b760f03e98cc10548d.tar.xz
Improve login flow (#35)
* Validate both inferred and explicitly entered server addresses by attempting to call the /versions endpoint
* If the domain from the mxid fails validation, try prefixing it with 'matrix'
* Only show server address field if address validation ultimately fails
Diffstat (limited to 'include/MatrixClient.h')
-rw-r--r--include/MatrixClient.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h

index 7a4ac24b..e3613ab7 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h
@@ -63,11 +63,13 @@ public slots: signals: void loginError(const QString &error); void registerError(const QString &error); + void versionError(const QString &error); void loggedOut(); void loginSuccess(const QString &userid, const QString &homeserver, const QString &token); void registerSuccess(const QString &userid, const QString &homeserver, const QString &token); + void versionSuccess(); void roomAvatarRetrieved(const QString &roomid, const QPixmap &img); void userAvatarRetrieved(const QString &userId, const QImage &img);