Make set_dialog_is_pinned private.
GitOrigin-RevId: 3ef6116d16897b28997e7fa91c1d496fce4edee2
This commit is contained in:
parent
876c67d711
commit
7dc2d13afe
@ -1158,7 +1158,8 @@ class ToggleDialogPinQuery : public Td::ResultHandler {
|
||||
if (!td->messages_manager_->on_get_dialog_error(dialog_id_, status, "ToggleDialogPinQuery")) {
|
||||
LOG(ERROR) << "Receive error for ToggleDialogPinQuery: " << status;
|
||||
}
|
||||
td->messages_manager_->set_dialog_is_pinned(dialog_id_, !is_pinned_);
|
||||
td->messages_manager_->on_update_pinned_dialogs(FolderId::main());
|
||||
td->messages_manager_->on_update_pinned_dialogs(FolderId::archive());
|
||||
promise_.set_error(std::move(status));
|
||||
}
|
||||
};
|
||||
|
@ -572,8 +572,6 @@ class MessagesManager : public Actor {
|
||||
|
||||
void clear_all_draft_messages(bool exclude_secret_chats, Promise<Unit> &&promise);
|
||||
|
||||
void set_dialog_is_pinned(DialogId dialog_id, bool is_pinned);
|
||||
|
||||
Status toggle_dialog_is_pinned(DialogListId dialog_list_id, DialogId dialog_id, bool is_pinned) TD_WARN_UNUSED_RESULT;
|
||||
|
||||
Status toggle_dialog_is_marked_as_unread(DialogId dialog_id, bool is_marked_as_unread) TD_WARN_UNUSED_RESULT;
|
||||
@ -2121,6 +2119,8 @@ class MessagesManager : public Actor {
|
||||
|
||||
static vector<DialogId> remove_secret_chat_dialog_ids(vector<DialogId> dialog_ids);
|
||||
|
||||
void set_dialog_is_pinned(DialogId dialog_id, bool is_pinned);
|
||||
|
||||
bool set_dialog_is_pinned(DialogListId dialog_list_id, Dialog *d, bool is_pinned,
|
||||
bool need_update_dialog_lists = true);
|
||||
|
||||
|
@ -3167,6 +3167,7 @@ void Td::on_get_promo_data(Result<telegram_api::object_ptr<telegram_api::help_Pr
|
||||
}
|
||||
|
||||
void Td::schedule_get_promo_data(int32 expires_in) {
|
||||
LOG(INFO) << "Schedule getPromoData in " << expires_in;
|
||||
if (expires_in < 0) {
|
||||
LOG(ERROR) << "Receive wrong expires_in: " << expires_in;
|
||||
expires_in = 0;
|
||||
@ -4478,6 +4479,7 @@ void Td::send_update(tl_object_ptr<td_api::Update> &&object) {
|
||||
case td_api::updateChatOnlineMemberCount::ID / 2:
|
||||
case td_api::updateUserChatAction::ID / 2:
|
||||
case td_api::updateChatFilters::ID / 2:
|
||||
case td_api::updateChatPosition::ID / 2:
|
||||
LOG(ERROR) << "Sending update: " << oneline(to_string(object));
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user