Adop the new SDK permalink detector and user builder

This commit is contained in:
Stefan Ceriu
2024-04-12 13:26:41 +03:00
committed by Stefan Ceriu
parent f8920d4d11
commit fcc25dd441
26 changed files with 201 additions and 483 deletions
@@ -14,6 +14,7 @@
// limitations under the License.
//
import MatrixRustSDK
import SwiftUI
struct MatrixUserShareLink<Label: View>: View {
@@ -22,8 +23,7 @@ struct MatrixUserShareLink<Label: View>: View {
init(userID: String, @ViewBuilder label: () -> Label) {
self.label = label()
permalink = try? PermalinkBuilder.permalinkTo(userIdentifier: userID,
baseURL: ServiceLocator.shared.settings.permalinkBaseURL)
permalink = try? URL(string: matrixToUserPermalink(userId: userID))
}
var body: some View {