mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
prevent replies to LLS timeline items, and live location sharing in threads
This commit is contained in:
@@ -46,7 +46,7 @@ class LocationSharingScreenViewModel: LocationSharingScreenViewModelType, Locati
|
||||
self.analytics = analytics
|
||||
self.userIndicatorController = userIndicatorController
|
||||
self.notificationCenter = notificationCenter
|
||||
|
||||
|
||||
super.init(initialViewState: .init(interactionMode: interactionMode,
|
||||
mapURLBuilder: mapURLBuilder,
|
||||
ownUserID: roomProxy.ownUserID),
|
||||
@@ -332,17 +332,20 @@ class LocationSharingScreenViewModel: LocationSharingScreenViewModelType, Locati
|
||||
extension LocationSharingScreenViewModel {
|
||||
enum MockType {
|
||||
case picker
|
||||
case pickerWithoutLiveLocationOption
|
||||
case staticSenderLocation
|
||||
case staticPinLocation
|
||||
case viewLive
|
||||
case viewLiveEmpty
|
||||
}
|
||||
|
||||
|
||||
static func mock(type: MockType,
|
||||
senderID: String = "@dan:matrix.org") -> LocationSharingScreenViewModel {
|
||||
let interactionMode: LocationSharingInteractionMode = switch type {
|
||||
case .picker:
|
||||
.picker
|
||||
.picker(shouldShowLiveLocationOption: true)
|
||||
case .pickerWithoutLiveLocationOption:
|
||||
.picker(shouldShowLiveLocationOption: false)
|
||||
case .staticPinLocation:
|
||||
.viewStatic(.init(sender: .init(id: senderID),
|
||||
geoURI: .init(latitude: 41.9027835,
|
||||
|
||||
Reference in New Issue
Block a user