mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
WIP: Fixes
This commit is contained in:
parent
cf3796f833
commit
2a67eff841
@ -152,11 +152,11 @@ public class ChatMessageShareButton: ASDisplayNode {
|
||||
} else if case let .customChatContents(contents) = subject, case .hashTagSearch = contents.kind {
|
||||
updatedIconImage = PresentationResourcesChat.chatFreeNavigateButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper)
|
||||
updatedIconOffset = CGPoint(x: UIScreenPixel, y: 1.0)
|
||||
} else if let hasTranslation = hasTranslation /* MARK: Swiftgram */ {
|
||||
updatedIconImage = PresentationResourcesChat.chatTranslateShareButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper, undoTranslate: hasTranslation)
|
||||
} else if isNavigate {
|
||||
updatedIconImage = PresentationResourcesChat.chatFreeNavigateToThreadButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper)
|
||||
updatedIconOffset = CGPoint(x: UIScreenPixel, y: -3.0)
|
||||
} else if let hasTranslation = hasTranslation /* MARK: Swiftgram */ {
|
||||
updatedIconImage = PresentationResourcesChat.chatTranslateShareButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper, undoTranslate: hasTranslation)
|
||||
} else if case .pinnedMessages = subject {
|
||||
updatedIconImage = PresentationResourcesChat.chatFreeNavigateButtonIcon(presentationData.theme.theme, wallpaper: presentationData.theme.wallpaper)
|
||||
updatedIconOffset = CGPoint(x: UIScreenPixel, y: 1.0)
|
||||
|
@ -2092,7 +2092,8 @@ extension ChatControllerImpl {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|> distinctUntilChanged).startStrict(next: { [weak self] translationState in
|
||||
|> distinctUntilChanged
|
||||
|> deliverOnMainQueue).startStrict(next: { [weak self] translationState in
|
||||
if let strongSelf = self, let translationState = translationState, strongSelf.state.predictedChatLanguage == nil {
|
||||
let previousState = strongSelf.state
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user