mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various improvements
This commit is contained in:
@@ -5382,10 +5382,17 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
if case let .messageOptions(_, _, info) = presentationInterfaceState.subject {
|
||||
if case .reply = info {
|
||||
//TODO:localize
|
||||
let titleContent: ChatTitleContent
|
||||
if case let .reply(hasQuote) = messageOptionsTitleInfo, hasQuote {
|
||||
strongSelf.chatTitleView?.titleContent = .custom("Reply to Quote", subtitleText, false)
|
||||
titleContent = .custom("Reply to Quote", subtitleText, false)
|
||||
} else {
|
||||
strongSelf.chatTitleView?.titleContent = .custom("Reply to Message", subtitleText, false)
|
||||
titleContent = .custom("Reply to Message", subtitleText, false)
|
||||
}
|
||||
if strongSelf.chatTitleView?.titleContent != titleContent {
|
||||
if strongSelf.chatTitleView?.titleContent != nil {
|
||||
strongSelf.chatTitleView?.animateLayoutTransition()
|
||||
}
|
||||
strongSelf.chatTitleView?.titleContent = titleContent
|
||||
}
|
||||
} else if case .link = info {
|
||||
//TODO:localize
|
||||
|
||||
Reference in New Issue
Block a user