Update UpdatesManager::is_acceptable_message.
This commit is contained in:
parent
905aa871e1
commit
59e0f03b5f
@ -557,6 +557,7 @@ bool UpdatesManager::is_acceptable_message(const telegram_api::Message *message_
|
||||
case telegram_api::messageActionSecureValuesSent::ID:
|
||||
case telegram_api::messageActionSecureValuesSentMe::ID:
|
||||
case telegram_api::messageActionContactSignUp::ID:
|
||||
case telegram_api::messageActionGroupCall::ID:
|
||||
break;
|
||||
case telegram_api::messageActionChatCreate::ID: {
|
||||
auto chat_create = static_cast<const telegram_api::messageActionChatCreate *>(action);
|
||||
@ -614,6 +615,13 @@ bool UpdatesManager::is_acceptable_message(const telegram_api::Message *message_
|
||||
}
|
||||
break;
|
||||
}
|
||||
case telegram_api::messageActionInviteToGroupCall::ID: {
|
||||
auto invite_to_group_call = static_cast<const telegram_api::messageActionInviteToGroupCall *>(action);
|
||||
if (!is_acceptable_user(UserId(invite_to_group_call->user_id_))) {
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
UNREACHABLE();
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user