mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-07-11 02:13:41 +02:00
Update Ghostgram features
This commit is contained in:
@@ -236,24 +236,28 @@ public func deviceSpoofController(context: AccountContext) -> ViewController {
|
||||
|
||||
let arguments = DeviceSpoofControllerArguments(
|
||||
toggleEnabled: { value in
|
||||
DeviceSpoofManager.shared.hasExplicitConfiguration = true
|
||||
DeviceSpoofManager.shared.isEnabled = value
|
||||
updateState { state in
|
||||
state.isEnabled = value
|
||||
}
|
||||
},
|
||||
selectProfile: { id in
|
||||
DeviceSpoofManager.shared.hasExplicitConfiguration = true
|
||||
DeviceSpoofManager.shared.selectedProfileId = id
|
||||
updateState { state in
|
||||
state.selectedProfileId = id
|
||||
}
|
||||
},
|
||||
updateCustomDeviceModel: { text in
|
||||
DeviceSpoofManager.shared.hasExplicitConfiguration = true
|
||||
DeviceSpoofManager.shared.customDeviceModel = text
|
||||
updateState { state in
|
||||
state.customDeviceModel = text
|
||||
}
|
||||
},
|
||||
updateCustomSystemVersion: { text in
|
||||
DeviceSpoofManager.shared.hasExplicitConfiguration = true
|
||||
DeviceSpoofManager.shared.customSystemVersion = text
|
||||
updateState { state in
|
||||
state.customSystemVersion = text
|
||||
|
||||
Reference in New Issue
Block a user