mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Fix detekt issue
This commit is contained in:
committed by
Benoit Marty
parent
75feaa7ee7
commit
33c7c75550
+5
-3
@@ -51,16 +51,18 @@ class RustLinkMobileHandler(
|
|||||||
)
|
)
|
||||||
// We emit Done in case the progress listener was deallocated before generate() sent the Done
|
// We emit Done in case the progress listener was deallocated before generate() sent the Done
|
||||||
_linkMobileStep.emit(LinkMobileStep.Done)
|
_linkMobileStep.emit(LinkMobileStep.Done)
|
||||||
} catch (e: HumanQrGrantLoginException) {
|
} catch (e: HumanQrGrantLoginException.NotFound) {
|
||||||
Timber.tag(tag.value).w(e, "Error during QR login grant")
|
Timber.tag(tag.value).w(e, "Error during QR login grant")
|
||||||
// Catch timeout here?
|
// Catch timeout here?
|
||||||
if (_linkMobileStep.value is LinkMobileStep.QrReady
|
if (_linkMobileStep.value is LinkMobileStep.QrReady) {
|
||||||
&& e is HumanQrGrantLoginException.NotFound) {
|
|
||||||
Timber.tag(tag.value).d("Emit QrRotating due to HumanQrGrantLoginException.NotFound")
|
Timber.tag(tag.value).d("Emit QrRotating due to HumanQrGrantLoginException.NotFound")
|
||||||
_linkMobileStep.emit(LinkMobileStep.QrRotating)
|
_linkMobileStep.emit(LinkMobileStep.QrRotating)
|
||||||
} else {
|
} else {
|
||||||
_linkMobileStep.emit(LinkMobileStep.Error(e.map()))
|
_linkMobileStep.emit(LinkMobileStep.Error(e.map()))
|
||||||
}
|
}
|
||||||
|
} catch (e: HumanQrGrantLoginException) {
|
||||||
|
Timber.tag(tag.value).w(e, "Error during QR login grant")
|
||||||
|
_linkMobileStep.emit(LinkMobileStep.Error(e.map()))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user