diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index 4b337a642..8895b0ee4 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -278,8 +278,8 @@ void InitSpellchecker( not_null session, not_null field) { #ifndef TDESKTOP_DISABLE_SPELLCHECK - const auto s = field->lifetime().make_state( - field->rawTextEdit(), + const auto s = Ui::CreateChild( + field->rawTextEdit().get(), session->settings().spellcheckerEnabledValue(), field->documentContentsChanges()); Spellchecker::SetPhrases({ {