mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 20:56:57 +02:00
Read tile server URL from .well-known (PSG-592)
Signed-off-by: Johannes Marbach <johannesm@element.io>
This commit is contained in:
+3
-1
@@ -49,7 +49,9 @@ final class LiveLocationSharingViewerCoordinator: Coordinator, Presentable {
|
||||
|
||||
let service = LiveLocationSharingViewerService(session: parameters.session, roomId: parameters.roomId)
|
||||
|
||||
let viewModel = LiveLocationSharingViewerViewModel(mapStyleURL: BuildSettings.tileServerMapStyleURL, service: service)
|
||||
let viewModel = LiveLocationSharingViewerViewModel(
|
||||
mapStyleURL: parameters.session.vc_homeserverConfiguration().tileServer.mapStyleURL,
|
||||
service: service)
|
||||
let view = LiveLocationSharingViewer(viewModel: viewModel.context)
|
||||
.addDependency(AvatarService.instantiate(mediaManager: parameters.session.mediaManager))
|
||||
liveLocationSharingViewerViewModel = viewModel
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ class LiveLocationSharingViewerViewModelTests: XCTestCase {
|
||||
|
||||
override func setUpWithError() throws {
|
||||
service = MockLiveLocationSharingViewerService()
|
||||
viewModel = LiveLocationSharingViewerViewModel(mapStyleURL: BuildSettings.tileServerMapStyleURL, service: service)
|
||||
viewModel = LiveLocationSharingViewerViewModel(mapStyleURL: BuildSettings.defaultTileServerMapStyleURL, service: service)
|
||||
context = viewModel.context
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user