Support input language restoration

This commit is contained in:
Peter Iakovlev
2018-12-20 17:49:55 +04:00
parent 9906f56507
commit 2a75b5fc61
4 changed files with 48 additions and 15 deletions

View File

@@ -3251,6 +3251,7 @@ public final class ChatController: TelegramController, KeyShortcutResponder, Gal
let scrollState = self.chatDisplayNode.historyNode.immediateScrollState()
interfaceState = interfaceState.withUpdatedHistoryScrollState(scrollState)
}
interfaceState = interfaceState.withUpdatedInputLanguage(self.chatDisplayNode.currentTextInputLanguage)
let _ = updatePeerChatInterfaceState(account: account, peerId: peerId, state: interfaceState).start()
}
}