mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
no message
This commit is contained in:
@@ -10,3 +10,16 @@ func inputContextForChatPresentationIntefaceState(_ chatPresentationInterfaceSta
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func inputTextPanelStateForChatPresentationInterfaceState(_ chatPresentationInterfaceState: ChatPresentationInterfaceState, account: Account) -> ChatTextInputPanelState {
|
||||
switch chatPresentationInterfaceState.inputMode {
|
||||
case .media:
|
||||
return ChatTextInputPanelState(accessoryItems: [.keyboard])
|
||||
case .none, .text:
|
||||
if chatPresentationInterfaceState.interfaceState.inputState.inputText.isEmpty {
|
||||
return ChatTextInputPanelState(accessoryItems: [.stickers])
|
||||
} else {
|
||||
return ChatTextInputPanelState(accessoryItems: [])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user