Delete unused default_can_report_spam_in_secret_chat.

GitOrigin-RevId: 9b7f2f5f0185600c00756f2f2f4543496d5feca7
This commit is contained in:
levlam 2019-10-11 04:37:40 +03:00
parent 49b43f8e94
commit 83d0d18a5e
2 changed files with 0 additions and 20 deletions

View File

@ -3492,24 +3492,6 @@ int32 ContactsManager::get_secret_chat_ttl(SecretChatId secret_chat_id) const {
return c->ttl;
}
bool ContactsManager::default_can_report_spam_in_secret_chat(SecretChatId secret_chat_id) const {
auto c = get_secret_chat(secret_chat_id);
if (c == nullptr) {
return true;
}
if (c->is_outbound) {
return false;
}
auto u = get_user(c->user_id);
if (u == nullptr) {
return true;
}
if (u->is_contact) {
return false;
}
return true;
}
string ContactsManager::get_user_username(UserId user_id) const {
if (!user_id.is_valid()) {
return string();

View File

@ -117,8 +117,6 @@ class ContactsManager : public Actor {
SecretChatState get_secret_chat_state(SecretChatId secret_chat_id) const;
int32 get_secret_chat_layer(SecretChatId secret_chat_id) const;
bool default_can_report_spam_in_secret_chat(SecretChatId secret_chat_id) const;
void on_imported_contacts(int64 random_id, vector<UserId> imported_contact_user_ids,
vector<int32> unimported_contact_invites);