From 4c1f6d66086b4f3b25dcfa47dfb30fe004034c57 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 2 Dec 2023 22:19:48 +0300 Subject: [PATCH] Fix misprint by @AYMENJD. --- td/telegram/MessageContent.cpp | 4 ++-- td/telegram/MessageContent.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index cd8a968fd..0ba1933ac 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -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) { return RestrictedRights(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, ChannelType::Unknown); } diff --git a/td/telegram/MessageContent.h b/td/telegram/MessageContent.h index 9e0ed1166..deb59a883 100644 --- a/td/telegram/MessageContent.h +++ b/td/telegram/MessageContent.h @@ -137,7 +137,7 @@ tl_object_ptr 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);