mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-27 10:32:37 +00:00
Various fixes
This commit is contained in:
parent
a80709842e
commit
c38baf1ca0
@ -9754,3 +9754,5 @@ Sorry for the inconvenience.";
|
|||||||
"StoryList.TooltipStoriesSavedToProfile_any" = "%d stories archived.";
|
"StoryList.TooltipStoriesSavedToProfile_any" = "%d stories archived.";
|
||||||
|
|
||||||
"Premium.New" = "NEW";
|
"Premium.New" = "NEW";
|
||||||
|
|
||||||
|
"MediaEditor.AddGif" = "Add GIF";
|
||||||
|
|||||||
@ -708,7 +708,7 @@ public class StickerPickerScreen: ViewController {
|
|||||||
if !canSaveGif {
|
if !canSaveGif {
|
||||||
isGifSaved = false
|
isGifSaved = false
|
||||||
}
|
}
|
||||||
let presentationData = context.sharedContext.currentPresentationData.with { $0 }
|
let presentationData = context.sharedContext.currentPresentationData.with { $0 }.withUpdated(theme: defaultDarkPresentationTheme)
|
||||||
|
|
||||||
let message = Message(stableId: 0, stableVersion: 0, id: MessageId(peerId: PeerId(0), namespace: Namespaces.Message.Local, id: 0), globallyUniqueId: nil, groupingKey: nil, groupInfo: nil, threadId: nil, timestamp: 0, flags: [], tags: [], globalTags: [], localTags: [], forwardInfo: nil, author: nil, text: "", attributes: [], media: [file.media], peers: SimpleDictionary(), associatedMessages: SimpleDictionary(), associatedMessageIds: [], associatedMedia: [:], associatedThreadInfo: nil, associatedStories: [:])
|
let message = Message(stableId: 0, stableVersion: 0, id: MessageId(peerId: PeerId(0), namespace: Namespaces.Message.Local, id: 0), globallyUniqueId: nil, groupingKey: nil, groupInfo: nil, threadId: nil, timestamp: 0, flags: [], tags: [], globalTags: [], localTags: [], forwardInfo: nil, author: nil, text: "", attributes: [], media: [file.media], peers: SimpleDictionary(), associatedMessages: SimpleDictionary(), associatedMessageIds: [], associatedMedia: [:], associatedThreadInfo: nil, associatedStories: [:])
|
||||||
|
|
||||||
@ -717,8 +717,8 @@ public class StickerPickerScreen: ViewController {
|
|||||||
gallery.setHintWillBePresentedInPreviewingContext(true)
|
gallery.setHintWillBePresentedInPreviewingContext(true)
|
||||||
|
|
||||||
var items: [ContextMenuItem] = []
|
var items: [ContextMenuItem] = []
|
||||||
items.append(.action(ContextMenuActionItem(text: presentationData.strings.MediaPicker_Send, icon: { theme in
|
items.append(.action(ContextMenuActionItem(text: presentationData.strings.MediaEditor_AddGif, icon: { theme in
|
||||||
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Resend"), color: theme.actionSheet.primaryTextColor)
|
return generateTintedImage(image: UIImage(bundleImageName: "Chat/Context Menu/Add"), color: theme.actionSheet.primaryTextColor)
|
||||||
}, action: { [weak self] _, f in
|
}, action: { [weak self] _, f in
|
||||||
f(.default)
|
f(.default)
|
||||||
if let self {
|
if let self {
|
||||||
|
|||||||
@ -256,6 +256,8 @@ public class PremiumLimitsListScreen: ViewController {
|
|||||||
})
|
})
|
||||||
let alphaTransition: ContainedViewLayoutTransition = .animated(duration: 0.25, curve: .easeInOut)
|
let alphaTransition: ContainedViewLayoutTransition = .animated(duration: 0.25, curve: .easeInOut)
|
||||||
alphaTransition.updateAlpha(node: self.dim, alpha: 0.0)
|
alphaTransition.updateAlpha(node: self.dim, alpha: 0.0)
|
||||||
|
|
||||||
|
self.controller?.updateModalStyleOverlayTransitionFactor(0.0, transition: positionTransition)
|
||||||
}
|
}
|
||||||
|
|
||||||
private var dismissOffset: CGFloat?
|
private var dismissOffset: CGFloat?
|
||||||
|
|||||||
@ -359,7 +359,7 @@ private final class StoriesListComponent: CombinedComponent {
|
|||||||
component: AnyComponent(ParagraphComponent(
|
component: AnyComponent(ParagraphComponent(
|
||||||
title: "Stealth Mode",
|
title: "Stealth Mode",
|
||||||
titleColor: titleColor,
|
titleColor: titleColor,
|
||||||
text: "Hide the fact that you viewd other people's stories.",
|
text: "Hide the fact that you viewed other people's stories.",
|
||||||
textColor: textColor,
|
textColor: textColor,
|
||||||
iconName: "Premium/Stories/Stealth",
|
iconName: "Premium/Stories/Stealth",
|
||||||
iconColor: colors[1]
|
iconColor: colors[1]
|
||||||
@ -373,7 +373,7 @@ private final class StoriesListComponent: CombinedComponent {
|
|||||||
component: AnyComponent(ParagraphComponent(
|
component: AnyComponent(ParagraphComponent(
|
||||||
title: "Permanent Views History",
|
title: "Permanent Views History",
|
||||||
titleColor: titleColor,
|
titleColor: titleColor,
|
||||||
text: "Check who opens your stories - even after they expire.",
|
text: "Check who opens your stories — even after they expire.",
|
||||||
textColor: textColor,
|
textColor: textColor,
|
||||||
iconName: "Premium/Stories/Views",
|
iconName: "Premium/Stories/Views",
|
||||||
iconColor: colors[2]
|
iconColor: colors[2]
|
||||||
|
|||||||
@ -3839,7 +3839,7 @@ public final class StoryItemSetContainerComponent: Component {
|
|||||||
guard let file else {
|
guard let file else {
|
||||||
let context = component.context
|
let context = component.context
|
||||||
var replaceImpl: ((ViewController) -> Void)?
|
var replaceImpl: ((ViewController) -> Void)?
|
||||||
let controller = PremiumDemoScreen(context: context, subject: .uniqueReactions, action: {
|
let controller = PremiumDemoScreen(context: context, subject: .uniqueReactions, forceDark: true, action: {
|
||||||
let controller = PremiumIntroScreen(context: context, source: .reactions)
|
let controller = PremiumIntroScreen(context: context, source: .reactions)
|
||||||
replaceImpl?(controller)
|
replaceImpl?(controller)
|
||||||
})
|
})
|
||||||
@ -3861,7 +3861,7 @@ public final class StoryItemSetContainerComponent: Component {
|
|||||||
|
|
||||||
let context = component.context
|
let context = component.context
|
||||||
var replaceImpl: ((ViewController) -> Void)?
|
var replaceImpl: ((ViewController) -> Void)?
|
||||||
let controller = PremiumDemoScreen(context: context, subject: .uniqueReactions, action: {
|
let controller = PremiumDemoScreen(context: context, subject: .uniqueReactions, forceDark: true, action: {
|
||||||
let controller = PremiumIntroScreen(context: context, source: .reactions)
|
let controller = PremiumIntroScreen(context: context, source: .reactions)
|
||||||
replaceImpl?(controller)
|
replaceImpl?(controller)
|
||||||
})
|
})
|
||||||
|
|||||||
@ -3143,6 +3143,14 @@ final class StoryItemSetContainerSendMessage {
|
|||||||
let node = controller.displayNode
|
let node = controller.displayNode
|
||||||
let menuController = ContextMenuController(actions: actions, blurred: true)
|
let menuController = ContextMenuController(actions: actions, blurred: true)
|
||||||
menuController.centerHorizontally = true
|
menuController.centerHorizontally = true
|
||||||
|
menuController.dismissed = { [weak self, weak view] in
|
||||||
|
if let self, let view {
|
||||||
|
Queue.mainQueue().after(0.1) {
|
||||||
|
self.menuController = nil
|
||||||
|
view.updateIsProgressPaused()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
controller.present(
|
controller.present(
|
||||||
menuController,
|
menuController,
|
||||||
in: .window(.root),
|
in: .window(.root),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user