mirror of https://github.com/oxen-io/session-ios
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
Swift
33 lines
1.1 KiB
Swift
5 years ago
|
//
|
||
|
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import Foundation
|
||
|
|
||
|
/// By centralizing feature flags here and documenting their rollout plan, it's easier to review
|
||
|
/// which feature flags are in play.
|
||
|
@objc(SSKFeatureFlags)
|
||
|
public class FeatureFlags: NSObject {
|
||
|
|
||
|
@objc
|
||
|
public static var conversationSearch: Bool {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
/// iOS has long supported sending oversized text as a sidecar attachment. The other clients
|
||
|
/// simply displayed it as a text attachment. As part of the new cross-client long-text feature,
|
||
|
/// we want to be able to display long text with attachments as well. Existing iOS clients
|
||
|
/// won't properly display this, so we'll need to wait a while for rollout.
|
||
|
/// The stakes aren't __too__ high, because legacy clients won't lose data - they just won't
|
||
|
/// see the media attached to a long text message until they update their client.
|
||
|
@objc
|
||
|
public static var sendingMediaWithOversizeText: Bool {
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
@objc
|
||
|
public static var useCustomPhotoCapture: Bool {
|
||
|
return true
|
||
|
}
|
||
|
}
|