mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 01:20:12 +00:00
prevent replies to LLS timeline items, and live location sharing in threads
This commit is contained in:
@@ -25,9 +25,21 @@ enum LocationSharingScreenViewModelAction {
|
||||
}
|
||||
|
||||
enum LocationSharingInteractionMode: Hashable {
|
||||
case picker
|
||||
case picker(shouldShowLiveLocationOption: Bool)
|
||||
case viewStatic(StaticLocationData)
|
||||
case viewLive(sender: TimelineItemSender?, initialLiveLocationShare: LiveLocationShare?)
|
||||
|
||||
var isPicker: Bool {
|
||||
if case .picker = self { return true }
|
||||
return false
|
||||
}
|
||||
|
||||
var shouldShowLiveLocationOption: Bool {
|
||||
if case .picker(let shouldShowLiveLocationOption) = self {
|
||||
return shouldShowLiveLocationOption
|
||||
}
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
struct LocationSharingScreenViewState: BindableState {
|
||||
|
||||
Reference in New Issue
Block a user