android: Fix connecting via link from Firefox (#1205)

* android: Fix connecting via link from Firefox

* Replace slash
This commit is contained in:
Stanislav Dmitrenko
2022-10-13 12:49:57 +03:00
committed by GitHub
parent 74421a5f52
commit 1e22028189

View File

@@ -50,7 +50,7 @@ fun ScanToConnectView(chatModel: ChatModel, close: () -> Unit) {
}
fun withUriAction(uri: Uri, run: suspend (String) -> Unit) {
val action = uri.path?.drop(1)
val action = uri.path?.drop(1)?.replace("/", "")
if (action == "contact" || action == "invitation") {
withApi { run(action) }
} else {