diff --git a/Telegram/SourceFiles/chat_helpers/message_field.cpp b/Telegram/SourceFiles/chat_helpers/message_field.cpp index f6ae4593f..c2f3983a5 100644 --- a/Telegram/SourceFiles/chat_helpers/message_field.cpp +++ b/Telegram/SourceFiles/chat_helpers/message_field.cpp @@ -278,6 +278,9 @@ void InitSpellchecker( not_null session, not_null field) { #ifndef TDESKTOP_DISABLE_SPELLCHECK + if (!Platform::Spellchecker::IsAvailable()) { + return; + } const auto s = Ui::CreateChild( field.get(), session->settings().spellcheckerEnabledValue());