aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--td/generate/scheme/td_api.tl4
-rw-r--r--td/telegram/CallDiscardReason.cpp1
-rw-r--r--td/telegram/GroupCallManager.cpp10
-rw-r--r--td/telegram/InputGroupCall.cpp2
-rw-r--r--td/telegram/cli.cpp4
-rw-r--r--td/telegram/files/FileLoaderUtils.cpp1
-rw-r--r--td/telegram/logevent/LogEvent.h1
-rw-r--r--tdutils/td/utils/tl_helpers.h1
8 files changed, 9 insertions, 15 deletions
diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl
index 2cd812ba9..0da32fa72 100644
--- a/td/generate/scheme/td_api.tl
+++ b/td/generate/scheme/td_api.tl
@@ -11347,14 +11347,14 @@ getVideoChatInviteLink group_call_id:int32 can_self_unmute:Bool = HttpUrl;
//@description Revokes invite link for a group call. Requires groupCall.can_be_managed right for video chats or groupCall.is_owned otherwise @group_call_id Group call identifier
revokeGroupCallInviteLink group_call_id:int32 = Ok;
-//@description Starts recording of an active group call; for voice chats only. Requires groupCall.can_be_managed right
+//@description Starts recording of an active group call; for video chats only. Requires groupCall.can_be_managed right
//@group_call_id Group call identifier
//@title Group call recording title; 0-64 characters
//@record_video Pass true to record a video file instead of an audio file
//@use_portrait_orientation Pass true to use portrait orientation for video instead of landscape one
startGroupCallRecording group_call_id:int32 title:string record_video:Bool use_portrait_orientation:Bool = Ok;
-//@description Ends recording of an active group call; for voice chats only. Requires groupCall.can_be_managed right @group_call_id Group call identifier
+//@description Ends recording of an active group call; for video chats only. Requires groupCall.can_be_managed right @group_call_id Group call identifier
endGroupCallRecording group_call_id:int32 = Ok;
//@description Toggles whether current user's video is paused @group_call_id Group call identifier @is_my_video_paused Pass true if the current user's video is paused
diff --git a/td/telegram/CallDiscardReason.cpp b/td/telegram/CallDiscardReason.cpp
index e1f793d0e..334a523e0 100644
--- a/td/telegram/CallDiscardReason.cpp
+++ b/td/telegram/CallDiscardReason.cpp
@@ -8,7 +8,6 @@
#include "td/telegram/LinkManager.h"
-#include "td/utils/buffer.h"
#include "td/utils/common.h"
namespace td {
diff --git a/td/telegram/GroupCallManager.cpp b/td/telegram/GroupCallManager.cpp
index 7920da65c..b57971e53 100644
--- a/td/telegram/GroupCallManager.cpp
+++ b/td/telegram/GroupCallManager.cpp
@@ -8,8 +8,6 @@
#include "td/telegram/AccessRights.h"
#include "td/telegram/AuthManager.h"
-#include "td/telegram/CallId.h"
-#include "td/telegram/CallManager.h"
#include "td/telegram/ChatManager.h"
#include "td/telegram/DialogAction.h"
#include "td/telegram/DialogActionManager.h"
@@ -24,6 +22,7 @@
#include "td/telegram/misc.h"
#include "td/telegram/net/DcId.h"
#include "td/telegram/net/NetQuery.h"
+#include "td/telegram/ServerMessageId.h"
#include "td/telegram/Td.h"
#include "td/telegram/telegram_api.h"
#include "td/telegram/UpdatesManager.h"
@@ -37,8 +36,11 @@
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/Random.h"
+#include "td/utils/Slice.h"
#include "td/utils/SliceBuilder.h"
+#include "td/utils/UInt.h"
+#include <algorithm>
#include <map>
#include <utility>
@@ -535,7 +537,6 @@ class GetInputGroupCallParticipantsQuery final : public Td::ResultHandler {
}
auto participants = result_ptr.move_as_ok();
- LOG(INFO) << "Receive group call participants: " << to_string(participants);
td_->user_manager_->on_get_users(std::move(participants->users_), "GetInputGroupCallParticipantsQuery");
td_->chat_manager_->on_get_chats(std::move(participants->chats_), "GetInputGroupCallParticipantsQuery");
@@ -3356,8 +3357,7 @@ void GroupCallManager::on_join_group_call(InputGroupCall &&input_group_call, Gro
CHECK(r_ok.is_ok());
if (begins_with(r_updates.error().message(), "CONF_WRITE_CHAIN_INVALID")) {
LOG(INFO) << "Restart join of " << input_group_call << ", because group call state has changed";
- return td_->group_call_manager_->try_join_group_call(std::move(input_group_call), std::move(join_parameters),
- std::move(promise));
+ return try_join_group_call(std::move(input_group_call), std::move(join_parameters), std::move(promise));
}
return promise.set_error(r_updates.move_as_error());
}
diff --git a/td/telegram/InputGroupCall.cpp b/td/telegram/InputGroupCall.cpp
index d3e024f32..f1ae2ed40 100644
--- a/td/telegram/InputGroupCall.cpp
+++ b/td/telegram/InputGroupCall.cpp
@@ -12,8 +12,6 @@
#include "td/telegram/MessagesManager.h"
#include "td/telegram/Td.h"
-#include "td/utils/logging.h"
-
namespace td {
Result<InputGroupCall> InputGroupCall::get_input_group_call(
diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp
index 62939bec8..1afc5cef8 100644
--- a/td/telegram/cli.cpp
+++ b/td/telegram/cli.cpp
@@ -5095,7 +5095,7 @@ class CliClient final : public Actor {
chat_id,
td_api::make_object<td_api::inputStoryContentPhoto>(as_input_file(photo), get_added_sticker_file_ids()),
areas, get_caption(), rules, active_period ? active_period : 86400, get_reposted_story_full_id(),
- op == "sspp", protect_content));
+ op == "pspp", protect_content));
} else if (op == "psv" || op == "psvp") {
ChatId chat_id;
string video;
@@ -5110,7 +5110,7 @@ class CliClient final : public Actor {
td_api::make_object<td_api::inputStoryContentVideo>(as_input_file(video), get_added_sticker_file_ids(),
duration, 0.5, true),
areas, get_caption(), rules, active_period ? active_period : 86400, get_reposted_story_full_id(),
- op == "ssvp", protect_content));
+ op == "psvp", protect_content));
} else if (op == "esc") {
ChatId story_poster_chat_id;
StoryId story_id;
diff --git a/td/telegram/files/FileLoaderUtils.cpp b/td/telegram/files/FileLoaderUtils.cpp
index 9f2c7199f..dd11192d0 100644
--- a/td/telegram/files/FileLoaderUtils.cpp
+++ b/td/telegram/files/FileLoaderUtils.cpp
@@ -20,7 +20,6 @@
#include "td/utils/Random.h"
#include "td/utils/SliceBuilder.h"
#include "td/utils/StringBuilder.h"
-#include "td/utils/utf8.h"
#include <tuple>
diff --git a/td/telegram/logevent/LogEvent.h b/td/telegram/logevent/LogEvent.h
index 95bc397d1..92308d249 100644
--- a/td/telegram/logevent/LogEvent.h
+++ b/td/telegram/logevent/LogEvent.h
@@ -13,7 +13,6 @@
#include "td/utils/common.h"
#include "td/utils/format.h"
#include "td/utils/logging.h"
-#include "td/utils/misc.h"
#include "td/utils/Slice.h"
#include "td/utils/Status.h"
#include "td/utils/StorerBase.h"
diff --git a/tdutils/td/utils/tl_helpers.h b/tdutils/td/utils/tl_helpers.h
index 5f91cf73a..7274455a2 100644
--- a/tdutils/td/utils/tl_helpers.h
+++ b/tdutils/td/utils/tl_helpers.h
@@ -12,7 +12,6 @@
#include "td/utils/SharedSlice.h"
#include "td/utils/Slice.h"
#include "td/utils/SliceBuilder.h"
-#include "td/utils/StackAllocator.h"
#include "td/utils/Status.h"
#include "td/utils/tl_parsers.h"
#include "td/utils/tl_storers.h"