Fix misprint by @AYMENJD.
This commit is contained in:
parent
24893faf75
commit
4c1f6d6608
|
@ -3247,10 +3247,10 @@ void delete_message_content_thumbnail(MessageContent *content, Td *td) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward,
|
Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward,
|
||||||
bool check_premissions, const Td *td) {
|
bool check_permissions, const Td *td) {
|
||||||
auto dialog_type = dialog_id.get_type();
|
auto dialog_type = dialog_id.get_type();
|
||||||
RestrictedRights permissions = [&] {
|
RestrictedRights permissions = [&] {
|
||||||
if (!check_premissions) {
|
if (!check_permissions) {
|
||||||
return RestrictedRights(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true,
|
return RestrictedRights(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true,
|
||||||
true, true, ChannelType::Unknown);
|
true, true, ChannelType::Unknown);
|
||||||
}
|
}
|
||||||
|
|
|
@ -137,7 +137,7 @@ tl_object_ptr<telegram_api::InputMedia> get_message_content_input_media_web_page
|
||||||
void delete_message_content_thumbnail(MessageContent *content, Td *td);
|
void delete_message_content_thumbnail(MessageContent *content, Td *td);
|
||||||
|
|
||||||
Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward,
|
Status can_send_message_content(DialogId dialog_id, const MessageContent *content, bool is_forward,
|
||||||
bool check_premissions, const Td *td);
|
bool check_permissions, const Td *td);
|
||||||
|
|
||||||
bool can_forward_message_content(const MessageContent *content);
|
bool can_forward_message_content(const MessageContent *content);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user