diff --git a/Telegram/SourceFiles/boxes/gift_premium_box.cpp b/Telegram/SourceFiles/boxes/gift_premium_box.cpp index 809705cd5..61be013b3 100644 --- a/Telegram/SourceFiles/boxes/gift_premium_box.cpp +++ b/Telegram/SourceFiles/boxes/gift_premium_box.cpp @@ -903,9 +903,13 @@ void GiftPremiumValidator::showChoosePeerBox(const QString &ref) { protected: std::unique_ptr createRow( not_null user) override { - return !user->isSelf() - ? ContactsBoxController::createRow(user) - : nullptr; + if (user->isSelf() + || user->isBot() + || user->isServiceUser() + || user->isInaccessible()) { + return nullptr; + } + return ContactsBoxController::createRow(user); } void rowClicked(not_null row) override {