mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
Location centring user's sharing location (#7398)
* fix issue on timeline bubbles not showing proper content after decrypt * fix location sharing centring to other users * Update RiotSwiftUI/Modules/LocationSharing/LiveLocationSharingViewer/LiveLocationSharingViewerViewModel.swift Co-authored-by: Alfonso Grillo <alfogrillo@element.io> --------- Co-authored-by: Alfonso Grillo <alfogrillo@element.io>
This commit is contained in:
+4
-2
@@ -40,8 +40,10 @@ class LiveLocationSharingViewerViewModelTests: XCTestCase {
|
||||
let service = MockLiveLocationSharingViewerService(currentUserSharingLocation: false)
|
||||
let viewModel = LiveLocationSharingViewerViewModel(mapStyleURL: BuildSettings.defaultTileServerMapStyleURL, service: service)
|
||||
XCTAssertFalse(viewModel.context.viewState.isCurrentUserShared)
|
||||
XCTAssertFalse(viewModel.context.viewState.showsUserLocation)
|
||||
XCTAssertEqual(viewModel.context.viewState.showsUserLocationMode, .hide)
|
||||
viewModel.context.send(viewAction: .showUserLocation)
|
||||
XCTAssertTrue(viewModel.context.viewState.showsUserLocation)
|
||||
XCTAssertEqual(viewModel.context.viewState.showsUserLocationMode, .follow)
|
||||
viewModel.context.send(viewAction: .tapListItem("@bob:matrix.org"))
|
||||
XCTAssertEqual(viewModel.context.viewState.showsUserLocationMode, .show)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user