Skip to content

Commit

Permalink
Fix misprint by @AYMENJD.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Dec 2, 2023
1 parent 24893fa commit 4c1f6d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions td/telegram/MessageContent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
bool check_premissions, const Td *td) {
bool check_permissions, const Td *td) {
auto dialog_type = dialog_id.get_type();
RestrictedRights permissions = [&] {
if (!check_premissions) {
if (!check_permissions) {

This comment has been minimized.

Copy link
@YYPPYP

YYPPYP Dec 3, 2023

Strongs 🥇

return RestrictedRights(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true,
true, true, ChannelType::Unknown);
}
Expand Down
2 changes: 1 addition & 1 deletion td/telegram/MessageContent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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);

Expand Down

0 comments on commit 4c1f6d6

Please sign in to comment.