diff --git a/deltachat-ios/Chat/ChatViewController.swift b/deltachat-ios/Chat/ChatViewController.swift index 4325e5f98..4b6f3b89b 100644 --- a/deltachat-ios/Chat/ChatViewController.swift +++ b/deltachat-ios/Chat/ChatViewController.swift @@ -2747,7 +2747,10 @@ extension ChatViewController: UITextViewDelegate { // MARK: - ChatInputTextViewPasteDelegate extension ChatViewController: ChatInputTextViewPasteDelegate { func onImagePasted(image: UIImage) { - let isSticker = image.size.equalTo(CGSize(width: 140, height: 140)) + + let preiOS18StickerSize = CGSize(width: 140, height: 140) + let iOS18StickerSize = CGSize(width: 160, height: 160) + let isSticker = image.size.equalTo(preiOS18StickerSize) || image.size.equalTo(iOS18StickerSize) if isSticker { sendSticker(image) diff --git a/deltachat-ios/Controller/AudioRecorderController.swift b/deltachat-ios/Controller/AudioRecorderController.swift index 4aa3c7298..472a7d5bb 100644 --- a/deltachat-ios/Controller/AudioRecorderController.swift +++ b/deltachat-ios/Controller/AudioRecorderController.swift @@ -151,7 +151,7 @@ class AudioRecorderController: UIViewController, AVAudioRecorderDelegate { AVNumberOfChannelsKey: 1] as [String: Any] let globallyUniqueString = ProcessInfo.processInfo.globallyUniqueString recordingFilePath = NSTemporaryDirectory().appending(globallyUniqueString).appending(".m4a") - _ = try? audioRecorder = AVAudioRecorder.init(url: URL(fileURLWithPath: recordingFilePath), settings: recordSettings) + audioRecorder = try? AVAudioRecorder.init(url: URL(fileURLWithPath: recordingFilePath), settings: recordSettings) audioRecorder?.delegate = self audioRecorder?.isMeteringEnabled = true }