From b43bdd403dba06f066d7143605d8e2a843c64f69 Mon Sep 17 00:00:00 2001 From: Peter Iakovlev Date: Thu, 22 Mar 2018 16:22:43 +0400 Subject: [PATCH 1/3] no message --- TelegramUI/GenerateTextEntities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TelegramUI/GenerateTextEntities.swift b/TelegramUI/GenerateTextEntities.swift index 8737378b37..031429770b 100644 --- a/TelegramUI/GenerateTextEntities.swift +++ b/TelegramUI/GenerateTextEntities.swift @@ -86,7 +86,7 @@ func generateChatInputTextEntities(_ text: NSAttributedString) -> [MessageTextEn } else if key == ChatTextInputAttributes.italic { entities.append(MessageTextEntity(range: range.lowerBound ..< range.upperBound, type: .Italic)) } else if key == ChatTextInputAttributes.monospace { - entities.append(MessageTextEntity(range: range.lowerBound ..< range.upperBound, type: .Pre)) + entities.append(MessageTextEntity(range: range.lowerBound ..< range.upperBound, type: .Code)) } else if key == ChatTextInputAttributes.textMention, let value = value as? ChatTextInputTextMentionAttribute { entities.append(MessageTextEntity(range: range.lowerBound ..< range.upperBound, type: .TextMention(peerId: value.peerId))) } From 71f0f43439094eba87548588a9da4a2b2fdaf619 Mon Sep 17 00:00:00 2001 From: Peter Iakovlev Date: Fri, 23 Mar 2018 13:58:49 +0400 Subject: [PATCH 2/3] no message --- TelegramUI/ChatListController.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TelegramUI/ChatListController.swift b/TelegramUI/ChatListController.swift index 1bbae8f53e..283accb0fd 100644 --- a/TelegramUI/ChatListController.swift +++ b/TelegramUI/ChatListController.swift @@ -508,11 +508,10 @@ public class ChatListController: TelegramController, UIViewControllerPreviewingD chatController.canReadHistory.set(true) chatController.updatePresentationMode(.standard(previewing: false)) if let navigationController = self.navigationController as? NavigationController { - navigateToChatController(navigationController: navigationController, chatController: chatController, account: self.account, chatLocation: chatController.chatLocation) + navigateToChatController(navigationController: navigationController, chatController: chatController, account: self.account, chatLocation: chatController.chatLocation, animated: false) self.chatListDisplayNode.chatListNode.clearHighlightAnimated(true) } } } } } - From 69369cef5f42af2ef59019af340366de2e8b0f3b Mon Sep 17 00:00:00 2001 From: Peter Iakovlev Date: Tue, 27 Mar 2018 12:59:18 +0400 Subject: [PATCH 3/3] no message --- TelegramUI/ChatEmptyNode.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TelegramUI/ChatEmptyNode.swift b/TelegramUI/ChatEmptyNode.swift index dd6d9debea..92be9f959f 100644 --- a/TelegramUI/ChatEmptyNode.swift +++ b/TelegramUI/ChatEmptyNode.swift @@ -142,9 +142,9 @@ private final class ChatEmptyNodeSecretChatContent: ASDisplayNode, ChatEmptyNode } } - let insets = UIEdgeInsets(top: 10.0, left: 10.0, bottom: 10.0, right: 10.0) - let titleSpacing: CGFloat = 4.0 - let subtitleSpacing: CGFloat = 3.0 + let insets = UIEdgeInsets(top: 15.0, left: 15.0, bottom: 15.0, right: 15.0) + let titleSpacing: CGFloat = 5.0 + let subtitleSpacing: CGFloat = 4.0 let iconInset: CGFloat = 14.0 var contentWidth: CGFloat = 100.0