diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 9bcb2fdca..193f40878 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -15793,7 +15793,7 @@ void ContactsManager::reload_dialog_administrators(DialogId dialog_id, Promise> &&promise) { auto dialog_type = dialog_id.get_type(); if (dialog_type == DialogType::Chat && !get_chat_permissions(dialog_id.get_chat_id()).is_member()) { - return promise.set_value(td_api::object_ptr()); + return promise.set_value(td_api::make_object()); } auto query_promise = PromiseCreator::lambda( [actor_id = actor_id(this), dialog_id, promise = std::move(promise)](Result &&result) mutable {