mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
URL encode fragment deeplink
This commit is contained in:
@@ -29,10 +29,15 @@ import MatrixSDK
|
||||
return nil
|
||||
}
|
||||
|
||||
return MXTools.encodeURIComponent(
|
||||
fragment(for: roomId)
|
||||
)
|
||||
}
|
||||
|
||||
private func fragment(for roomId: String) -> String {
|
||||
guard let servers = servers, !servers.isEmpty else {
|
||||
return roomId
|
||||
}
|
||||
|
||||
return roomId + "?via=" + servers.joined(separator: "&via=")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user