android: Fix connecting via link from Firefox (#1205)
* android: Fix connecting via link from Firefox * Replace slash
This commit is contained in:
committed by
GitHub
parent
74421a5f52
commit
1e22028189
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user