diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index 8895b0ee4..f6ae4593f 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -279,9 +279,8 @@ void InitSpellchecker( not_null field) { #ifndef TDESKTOP_DISABLE_SPELLCHECK const auto s = Ui::CreateChild( - field->rawTextEdit().get(), - session->settings().spellcheckerEnabledValue(), - field->documentContentsChanges()); + field.get(), + session->settings().spellcheckerEnabledValue()); Spellchecker::SetPhrases({ { { &ph::lng_spellchecker_add, tr::lng_spellchecker_add() }, { &ph::lng_spellchecker_remove, tr::lng_spellchecker_remove() }, diff --git a/Telegram/lib_spellcheck b/Telegram/lib_spellcheck index 9c353d1ab..0269666de 160000 --- a/Telegram/lib_spellcheck +++ b/Telegram/lib_spellcheck @@ -1 +1 @@ -Subproject commit 9c353d1abbcc022c4f362a161216a2f1d65ab85d +Subproject commit 0269666dea57837f56f0eca965fc1f1a61bb9e27