no message

This commit is contained in:
Peter
2016-10-22 22:53:47 +03:00
parent 702d19a07d
commit 6fbab164ed
70 changed files with 2188 additions and 520 deletions

View File

@@ -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: [])
}
}
}