mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Merge commit '522ea7dd453a26eeb308f29794bb972e4689e6d8' into beta
This commit is contained in:
commit
3fd1eaa141
@ -5777,7 +5777,8 @@ Sorry for the inconvenience.";
|
|||||||
|
|
||||||
"PUSH_CHAT_VOICECHAT_START" = "%2$@|%1$@ started a voice chat";
|
"PUSH_CHAT_VOICECHAT_START" = "%2$@|%1$@ started a voice chat";
|
||||||
"PUSH_CHAT_VOICECHAT_INVITE" = "%2$@|%1$@ invited %3$@ to the voice chat";
|
"PUSH_CHAT_VOICECHAT_INVITE" = "%2$@|%1$@ invited %3$@ to the voice chat";
|
||||||
"PUSH_CHAT_VOICECHAT_INVITE_YOU" = "%2$|@%1$@ invited you to the voice chat";
|
"PUSH_CHAT_VOICECHAT_INVITE_YOU" = "%2$@|%1$@ invited you to the voice chat";
|
||||||
|
"PUSH_CHAT_VOICECHAT_END" = "%2$@|%1$@ has ended the voice chat";
|
||||||
|
|
||||||
"Call.VoiceChatInProgressTitle" = "Voice Chat in Progress";
|
"Call.VoiceChatInProgressTitle" = "Voice Chat in Progress";
|
||||||
"Call.VoiceChatInProgressMessageCall" = "Leave voice chat in %1$@ and start a call with %2$@?";
|
"Call.VoiceChatInProgressMessageCall" = "Leave voice chat in %1$@ and start a call with %2$@?";
|
||||||
|
@ -1083,11 +1083,6 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, UIScroll
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let shareController = ShareController(context: strongSelf.context, subject: subject, preferredAction: preferredAction, forcedTheme: defaultDarkColorPresentationTheme)
|
let shareController = ShareController(context: strongSelf.context, subject: subject, preferredAction: preferredAction, forcedTheme: defaultDarkColorPresentationTheme)
|
||||||
shareController.actionCompleted = { [weak self] in
|
|
||||||
if let strongSelf = self {
|
|
||||||
strongSelf.controllerInteraction?.presentController(UndoOverlayController(presentationData: presentationData, content: .mediaSaved(text: "Media saved to phone"), elevatedLayout: true, animateInAsReplacement: true, action: { _ in return false }), nil)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shareController.completed = { [weak self] peerIds in
|
shareController.completed = { [weak self] peerIds in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let _ = (strongSelf.context.account.postbox.transaction { transaction -> [Peer] in
|
let _ = (strongSelf.context.account.postbox.transaction { transaction -> [Peer] in
|
||||||
@ -1149,11 +1144,6 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, UIScroll
|
|||||||
let shareAction: ([Message]) -> Void = { messages in
|
let shareAction: ([Message]) -> Void = { messages in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let shareController = ShareController(context: strongSelf.context, subject: .messages(messages), preferredAction: preferredAction, forcedTheme: defaultDarkColorPresentationTheme)
|
let shareController = ShareController(context: strongSelf.context, subject: .messages(messages), preferredAction: preferredAction, forcedTheme: defaultDarkColorPresentationTheme)
|
||||||
shareController.actionCompleted = { [weak self] in
|
|
||||||
if let strongSelf = self {
|
|
||||||
strongSelf.controllerInteraction?.presentController(UndoOverlayController(presentationData: presentationData, content: .mediaSaved(text: "Media saved to phone"), elevatedLayout: true, animateInAsReplacement: true, action: { _ in return false }), nil)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shareController.completed = { [weak self] peerIds in
|
shareController.completed = { [weak self] peerIds in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let _ = (strongSelf.context.account.postbox.transaction { transaction -> [Peer] in
|
let _ = (strongSelf.context.account.postbox.transaction { transaction -> [Peer] in
|
||||||
@ -1271,11 +1261,6 @@ final class ChatItemGalleryFooterContentNode: GalleryFooterContentNode, UIScroll
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
let shareController = ShareController(context: self.context, subject: subject, preferredAction: preferredAction, forcedTheme: defaultDarkColorPresentationTheme)
|
let shareController = ShareController(context: self.context, subject: subject, preferredAction: preferredAction, forcedTheme: defaultDarkColorPresentationTheme)
|
||||||
shareController.actionCompleted = { [weak self] in
|
|
||||||
if let strongSelf = self {
|
|
||||||
strongSelf.controllerInteraction?.presentController(UndoOverlayController(presentationData: presentationData, content: .mediaSaved(text: "Media saved to phone"), elevatedLayout: true, animateInAsReplacement: true, action: { _ in return false }), nil)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shareController.completed = { [weak self] peerIds in
|
shareController.completed = { [weak self] peerIds in
|
||||||
if let strongSelf = self {
|
if let strongSelf = self {
|
||||||
let _ = (strongSelf.context.account.postbox.transaction { transaction -> [Peer] in
|
let _ = (strongSelf.context.account.postbox.transaction { transaction -> [Peer] in
|
||||||
|
@ -484,7 +484,6 @@ final class UniversalVideoGalleryItemNode: ZoomableContentGalleryItemNode {
|
|||||||
private var previousPlaying: Bool?
|
private var previousPlaying: Bool?
|
||||||
|
|
||||||
private func setupControlsTimer() {
|
private func setupControlsTimer() {
|
||||||
return
|
|
||||||
let timer = SwiftSignalKit.Timer(timeout: 3.0, repeat: false, completion: { [weak self] in
|
let timer = SwiftSignalKit.Timer(timeout: 3.0, repeat: false, completion: { [weak self] in
|
||||||
self?.updateControlsVisibility(false)
|
self?.updateControlsVisibility(false)
|
||||||
self?.controlsTimer = nil
|
self?.controlsTimer = nil
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user