From 8ee04b37e692eee70dce58d184125504290885ae Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 9 Dec 2022 12:12:49 +0300 Subject: [PATCH] Minor improvements. --- td/generate/scheme/td_api.tl | 2 +- td/telegram/ForumTopic.cpp | 1 - td/telegram/ForumTopic.h | 3 ++- td/telegram/ForumTopicManager.cpp | 3 +++ td/telegram/ForumTopicManager.h | 2 ++ td/telegram/Td.cpp | 1 + 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index b8ce61586..58d526a44 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -6117,7 +6117,7 @@ joinGroupCall group_call_id:int32 participant_id:MessageSender audio_source_id:i //@payload Group call join payload; received from tgcalls startGroupCallScreenSharing group_call_id:int32 audio_source_id:int32 payload:string = Text; -//@description Pauses or unpauses screen sharing in a joined group call @group_call_id Group call identifier @is_paused True, if screen sharing is paused +//@description Pauses or unpauses screen sharing in a joined group call @group_call_id Group call identifier @is_paused Pass true to pause screen sharing; pass false to unpause it toggleGroupCallScreenSharingIsPaused group_call_id:int32 is_paused:Bool = Ok; //@description Ends screen sharing in a joined group call @group_call_id Group call identifier diff --git a/td/telegram/ForumTopic.cpp b/td/telegram/ForumTopic.cpp index 771cc4c48..7a138f424 100644 --- a/td/telegram/ForumTopic.cpp +++ b/td/telegram/ForumTopic.cpp @@ -7,7 +7,6 @@ #include "td/telegram/ForumTopic.h" #include "td/telegram/DraftMessage.h" -#include "td/telegram/ForumTopicInfo.h" #include "td/telegram/MessagesManager.h" #include "td/telegram/ServerMessageId.h" #include "td/telegram/Td.h" diff --git a/td/telegram/ForumTopic.h b/td/telegram/ForumTopic.h index d975b09cb..b1ad12612 100644 --- a/td/telegram/ForumTopic.h +++ b/td/telegram/ForumTopic.h @@ -6,8 +6,10 @@ // #pragma once +#include "td/telegram/DialogId.h" #include "td/telegram/DialogNotificationSettings.h" #include "td/telegram/DraftMessage.h" +#include "td/telegram/ForumTopicInfo.h" #include "td/telegram/MessageId.h" #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" @@ -16,7 +18,6 @@ namespace td { -class ForumTopicInfo; class Td; class ForumTopic { diff --git a/td/telegram/ForumTopicManager.cpp b/td/telegram/ForumTopicManager.cpp index 10d7adac1..9722a7e8d 100644 --- a/td/telegram/ForumTopicManager.cpp +++ b/td/telegram/ForumTopicManager.cpp @@ -16,6 +16,7 @@ #include "td/telegram/ForumTopicIcon.h" #include "td/telegram/ForumTopicInfo.hpp" #include "td/telegram/Global.h" +#include "td/telegram/logevent/LogEvent.h" #include "td/telegram/MessagesManager.h" #include "td/telegram/MessageThreadDb.h" #include "td/telegram/misc.h" @@ -31,6 +32,8 @@ #include "td/utils/buffer.h" #include "td/utils/logging.h" #include "td/utils/Random.h" +#include "td/utils/Slice.h" +#include "td/utils/tl_helpers.h" namespace td { diff --git a/td/telegram/ForumTopicManager.h b/td/telegram/ForumTopicManager.h index a274cb6b8..4f5b67a80 100644 --- a/td/telegram/ForumTopicManager.h +++ b/td/telegram/ForumTopicManager.h @@ -6,8 +6,10 @@ // #pragma once +#include "td/telegram/ChannelId.h" #include "td/telegram/CustomEmojiId.h" #include "td/telegram/DialogId.h" +#include "td/telegram/DialogNotificationSettings.h" #include "td/telegram/ForumTopic.h" #include "td/telegram/ForumTopicEditedData.h" #include "td/telegram/ForumTopicInfo.h" diff --git a/td/telegram/Td.cpp b/td/telegram/Td.cpp index 1ab24caea..11aa1eeb0 100644 --- a/td/telegram/Td.cpp +++ b/td/telegram/Td.cpp @@ -74,6 +74,7 @@ #include "td/telegram/MessageSender.h" #include "td/telegram/MessagesManager.h" #include "td/telegram/MessageThreadInfo.h" +#include "td/telegram/MessageTtl.h" #include "td/telegram/misc.h" #include "td/telegram/net/ConnectionCreator.h" #include "td/telegram/net/DcId.h"