mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 17:59:21 +00:00
Change UIAlertDialog of Photo permission in ChatConversationViewModel
This commit is contained in:
parent
cd9778b3a1
commit
5054fa8d71
3 changed files with 5 additions and 3 deletions
|
|
@ -406,7 +406,9 @@ class ChatConversationViewModel: ControlsViewModel {
|
|||
if PHPhotoLibrary.authorizationStatus() == .authorized {
|
||||
block!()
|
||||
} else {
|
||||
UIAlertView(title: NSLocalizedString("Photo's permission", comment: ""), message: NSLocalizedString("Photo not authorized", comment: ""), delegate: nil, cancelButtonTitle: "", otherButtonTitles: "Continue").show()
|
||||
let alert = UIAlertController(title: NSLocalizedString("Photo's permission", comment: ""), message: NSLocalizedString("Photo not authorized", comment: ""), preferredStyle: .alert)
|
||||
alert.addAction(UIAlertAction(title: NSLocalizedString("Continue", comment: ""), style: .default))
|
||||
PhoneMainView.instance()!.present(alert, animated: true)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1308,7 +1308,7 @@ class ChatConversationViewSwift: BackActionsNavigationView, PHPickerViewControll
|
|||
func voiceRecordTimerUpdate() {
|
||||
let recorderDuration = linphone_recorder_get_duration(ChatConversationViewModel.sharedModel.voiceRecorder?.getCobject)
|
||||
if recorderDuration > LinphoneManager.instance().lpConfigInt(forKey: "voice_recording_max_duration", withDefault: 59999) {
|
||||
Log.i("[Chat Message Sending] Max duration for voice recording exceeded, stopping. (max = %d)", LinphoneManager.instance().lpConfigInt(forKey: "voice_recording_max_duration", withDefault: 59999))
|
||||
Log.i("[Chat Message Sending] Max duration for voice recording exceeded, stopping. (max = \(LinphoneManager.instance().lpConfigInt(forKey: "voice_recording_max_duration", withDefault: 59999))")
|
||||
stopVoiceRecording()
|
||||
} else {
|
||||
recordingDurationTextView.text = ChatConversationViewModel.sharedModel.formattedDuration(Int(linphone_recorder_get_duration(ChatConversationViewModel.sharedModel.voiceRecorder?.getCobject)))
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ import os
|
|||
}
|
||||
var error: Unmanaged<CFError>?
|
||||
guard let clearTextData = SecKeyCreateDecryptedData(key,algorithm,Data(base64Encoded: encryptedText)! as CFData,&error) as Data? else {
|
||||
Log.e("[VFS] failed deciphering data \(String(describing: error))")
|
||||
print("[VFS] failed deciphering data \(String(describing: error))")
|
||||
return nil
|
||||
}
|
||||
return String(decoding: clearTextData, as: UTF8.self)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue