mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-16 19:30:29 +00:00
Various fixes
This commit is contained in:
parent
927d6ad0a8
commit
dc4b8cf999
@ -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";
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user