URL encode fragment deeplink

This commit is contained in:
Andy Uhnak
2022-03-28 16:55:54 +01:00
parent dd003717e8
commit 6285bb5efe
2 changed files with 9 additions and 4 deletions
@@ -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=")
}
}