mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Update filters
This commit is contained in:
@@ -8379,12 +8379,9 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
}
|
||||
|
||||
var canEdit = false
|
||||
self.updateChatPresentationInterfaceState(animated: false, interactive: false, { state in
|
||||
if state.interfaceState.effectiveInputState.inputText.length == 0 && state.interfaceState.editMessage == nil {
|
||||
canEdit = true
|
||||
}
|
||||
return state
|
||||
})
|
||||
if self.presentationInterfaceState.interfaceState.effectiveInputState.inputText.length == 0 && self.presentationInterfaceState.interfaceState.editMessage == nil {
|
||||
canEdit = true
|
||||
}
|
||||
|
||||
if canEdit, let message = self.chatDisplayNode.historyNode.firstMessageForEditInCurrentHistoryView() {
|
||||
inputShortcuts.append(KeyShortcut(input: UIKeyCommand.inputUpArrow, action: { [weak self] in
|
||||
|
||||
Reference in New Issue
Block a user