Fixes problem with loading chat history duplicates.
Fixes invisible cursor in chat edit text. Does not clear edit text focus when message correction is cancelled to avoid confusion.