Various fixes

This commit is contained in:
Ilya Laktyushin 2025-08-19 12:12:22 +04:00
parent 927d6ad0a8
commit dc4b8cf999
3 changed files with 6 additions and 12 deletions

View File

@ -14913,6 +14913,6 @@ Sorry for the inconvenience.";
"Gift.View.Unknown.Title" = "Gift"; "Gift.View.Unknown.Title" = "Gift";
"Conversation.StopVoiceMessageTitle" = "Audio Recording"; "Conversation.StopVoiceMessageTitle" = "Audio Recording";
"Conversation.StopVoiceMessageDescription" = "Are you sure you want to stop recording?"; "Conversation.StopVoiceMessageDescription" = "Are you sure you want to pause recording?";
"Conversation.StopVoiceMessageDiscardAction" = "Discard"; "Conversation.StopVoiceMessageDiscardAction" = "Discard";
"Conversation.StopVoiceMessagePauseAction" = "Pause"; "Conversation.StopVoiceMessagePauseAction" = "Pause";

View File

@ -664,9 +664,13 @@ extension ChatControllerImpl {
if let channel = self.presentationInterfaceState.renderedPeer?.peer as? TelegramChannel, channel.isForumOrMonoForum, self.presentationInterfaceState.persistentData.topicListPanelLocation == true, self.presentationInterfaceState.chatLocation.threadId != nil { if let channel = self.presentationInterfaceState.renderedPeer?.peer as? TelegramChannel, channel.isForumOrMonoForum, self.presentationInterfaceState.persistentData.topicListPanelLocation == true, self.presentationInterfaceState.chatLocation.threadId != nil {
self.updateChatLocationThread(threadId: nil, animationDirection: .left) self.updateChatLocationThread(threadId: nil, animationDirection: .left)
} else { } else {
if self.attemptNavigation({ [weak self] in
self?.dismiss()
}) {
self.dismiss() self.dismiss()
} }
} }
}
if #available(iOS 18.0, *) { if #available(iOS 18.0, *) {
if engineExperimentalInternalTranslationService == nil, let hostView = self.context.sharedContext.mainWindow?.hostView { if engineExperimentalInternalTranslationService == nil, let hostView = self.context.sharedContext.mainWindow?.hostView {

View File

@ -9826,16 +9826,6 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
} }
} }
), ),
TextAlertAction(
type: .destructiveAction,
title: self.presentationData.strings.Conversation_StopVoiceMessageDiscardAction,
action: { [weak self] in
self?.stopMediaRecorder()
Queue.mainQueue().after(0.1) {
action()
}
}
),
TextAlertAction( TextAlertAction(
type: .genericAction, type: .genericAction,
title: self.presentationData.strings.Common_Cancel, title: self.presentationData.strings.Common_Cancel,