Skip to content

Commit 35b0eeb

Browse files
committed
Various fixes.
1 parent 2eb990c commit 35b0eeb

9 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎td/generate/scheme/td_api.tl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2958,7 +2958,7 @@ savedMessagesTopic id:int53 type:SavedMessagesTopicType is_pinned:Bool order:int
29582958
//@id Unique topic identifier
29592959
//@sender_id Identifier of the user or chat that sends the messages to the topic
29602960
//@order A parameter used to determine order of the topic in the topic list. Topics must be sorted by the order in descending order
2961-
//@can_send_unpaid_messages True if the other party can send unpaid messages even if the chat has paid messages enabled
2961+
//@can_send_unpaid_messages True, if the other party can send unpaid messages even if the chat has paid messages enabled
29622962
//@is_marked_as_unread True, if the forum topic is marked as unread
29632963
//@unread_count Number of unread messages in the chat
29642964
//@last_read_inbox_message_id Identifier of the last read incoming message

‎td/telegram/ChatManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5749,7 +5749,7 @@ void ChatManager::on_get_chat_full(tl_object_ptr<telegram_api::ChatFull> &&chat_
57495749
auto gift_count = channel->stargifts_count_;
57505750
auto has_stargifts_available = channel->stargifts_available_;
57515751
auto has_paid_messages_available = channel->paid_messages_available_;
5752-
auto send_paid_message_stars = channel->send_paid_messages_stars_;
5752+
auto send_paid_message_stars = StarManager::get_star_count(channel->send_paid_messages_stars_);
57535753
StickerSetId sticker_set_id;
57545754
if (channel->stickerset_ != nullptr) {
57555755
sticker_set_id =

‎td/telegram/SavedMessagesManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1504,8 +1504,8 @@ SavedMessagesManager::SavedMessagesTopicInfo SavedMessagesManager::get_saved_mes
15041504
}
15051505

15061506
void SavedMessagesManager::on_get_saved_dialogs(TopicList *topic_list, Result<Unit> &&result) {
1507-
CHECK(topic_list != nullptr);
15081507
G()->ignore_result_if_closing(result);
1508+
CHECK(topic_list != nullptr);
15091509
if (result.is_error()) {
15101510
fail_promises(topic_list->load_queries_, result.move_as_error());
15111511
} else {

‎td/telegram/ToDoCompletion.cpp‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#include "td/telegram/Dependencies.h"
1010

11-
#include "td/utils/utf8.h"
12-
1311
namespace td {
1412

1513
ToDoCompletion::ToDoCompletion(telegram_api::object_ptr<telegram_api::todoCompletion> &&completion) {

‎td/telegram/ToDoItem.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "td/telegram/Td.h"
1313
#include "td/telegram/UserManager.h"
1414

15+
#include "td/utils/logging.h"
1516
#include "td/utils/SliceBuilder.h"
1617
#include "td/utils/utf8.h"
1718

‎td/telegram/ToDoList.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "td/telegram/Td.h"
1414

1515
#include "td/utils/algorithm.h"
16+
#include "td/utils/logging.h"
17+
#include "td/utils/SliceBuilder.h"
1618
#include "td/utils/utf8.h"
1719

1820
namespace td {

‎td/telegram/ToDoList.h‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@
66
//
77
#pragma once
88

9+
#include "td/telegram/DialogId.h"
910
#include "td/telegram/MessageEntity.h"
1011
#include "td/telegram/MessageId.h"
1112
#include "td/telegram/td_api.h"
1213
#include "td/telegram/telegram_api.h"
1314
#include "td/telegram/ToDoCompletion.h"
1415
#include "td/telegram/ToDoItem.h"
1516

17+
#include "td/utils/common.h"
18+
#include "td/utils/Status.h"
19+
1620
namespace td {
1721

1822
class Dependencies;

‎td/telegram/UpdatesManager.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4476,9 +4476,9 @@ void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateGroupCallChainB
44764476

44774477
void UpdatesManager::on_update(tl_object_ptr<telegram_api::updateGroupCall> update, Promise<Unit> &&promise) {
44784478
DialogId dialog_id(ChatId(update->chat_id_));
4479-
if (dialog_id != DialogId() && !td_->dialog_manager_->have_dialog_force(dialog_id, "updateGroupCall")) {
4479+
if (dialog_id != DialogId() && !td_->dialog_manager_->have_dialog_force(dialog_id, "updateGroupCall chat")) {
44804480
dialog_id = DialogId(ChannelId(update->chat_id_));
4481-
if (!td_->dialog_manager_->have_dialog_force(dialog_id, "updateGroupCall")) {
4481+
if (!td_->dialog_manager_->have_dialog_force(dialog_id, "updateGroupCall channel")) {
44824482
dialog_id = DialogId();
44834483
}
44844484
}

‎tddb/td/db/BinlogKeyValue.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include "td/db/DbKey.h"
1212
#include "td/db/KeyValueSyncInterface.h"
1313

14-
#include "td/utils/algorithm.h"
1514
#include "td/utils/buffer.h"
1615
#include "td/utils/common.h"
1716
#include "td/utils/FlatHashMap.h"

0 commit comments

Comments
 (0)