mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Do not enforce MDM-configured homeserver to login via QR-code.
This commit is contained in:
-7
@@ -97,13 +97,6 @@ class QrCodeScanPresenter(
|
|||||||
val data = qrCodeLoginDataFactory.parseQrCodeData(code).onFailure {
|
val data = qrCodeLoginDataFactory.parseQrCodeData(code).onFailure {
|
||||||
Timber.e(it, "Error parsing QR code data")
|
Timber.e(it, "Error parsing QR code data")
|
||||||
}.getOrThrow()
|
}.getOrThrow()
|
||||||
val serverName = data.serverName()
|
|
||||||
if (serverName != null) {
|
|
||||||
defaultAccountProviderAccessControl.assertIsAllowedToConnectToAccountProvider(
|
|
||||||
title = serverName,
|
|
||||||
accountProviderUrl = serverName,
|
|
||||||
)
|
|
||||||
}
|
|
||||||
data
|
data
|
||||||
}.runCatchingUpdatingState(codeScannedAction)
|
}.runCatchingUpdatingState(codeScannedAction)
|
||||||
}.invokeOnCompletion {
|
}.invokeOnCompletion {
|
||||||
|
|||||||
Reference in New Issue
Block a user