Get dialog unread marks only after getDifference.
GitOrigin-RevId: a0c12f5d4ed032c4e221945130f3c487bae101c0
This commit is contained in:
parent
6ca79487e2
commit
7b656da0c8
@ -7302,6 +7302,10 @@ void MessagesManager::after_get_difference() {
|
|||||||
td_->stickers_manager_->get_favorite_stickers(Auto());
|
td_->stickers_manager_->get_favorite_stickers(Auto());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!G()->td_db()->get_binlog_pmc()->isset("fetched_marks_as_unread") && !td_->auth_manager_->is_bot()) {
|
||||||
|
td_->create_handler<GetDialogUnreadMarksQuery>()->send();
|
||||||
|
}
|
||||||
|
|
||||||
load_notification_settings();
|
load_notification_settings();
|
||||||
|
|
||||||
// TODO move to ContactsManager or delete after users will become persistent
|
// TODO move to ContactsManager or delete after users will become persistent
|
||||||
@ -9909,10 +9913,6 @@ void MessagesManager::start_up() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!G()->td_db()->get_binlog_pmc()->isset("fetched_marks_as_unread") && !td_->auth_manager_->is_bot()) {
|
|
||||||
td_->create_handler<GetDialogUnreadMarksQuery>()->send();
|
|
||||||
}
|
|
||||||
|
|
||||||
ttl_db_loop_start(G()->server_time());
|
ttl_db_loop_start(G()->server_time());
|
||||||
} else {
|
} else {
|
||||||
G()->td_db()->get_binlog_pmc()->erase("last_server_dialog_date");
|
G()->td_db()->get_binlog_pmc()->erase("last_server_dialog_date");
|
||||||
|
@ -1154,7 +1154,7 @@ class CliClient final : public Actor {
|
|||||||
send_request(make_tl_object<td_api::checkAuthenticationCode>(code, first_name, last_name));
|
send_request(make_tl_object<td_api::checkAuthenticationCode>(code, first_name, last_name));
|
||||||
} else if (op == "cap") {
|
} else if (op == "cap") {
|
||||||
send_request(make_tl_object<td_api::checkAuthenticationPassword>(args));
|
send_request(make_tl_object<td_api::checkAuthenticationPassword>(args));
|
||||||
} else if (op == "cab") {
|
} else if (op == "cab" || op == "cabt") {
|
||||||
send_request(make_tl_object<td_api::checkAuthenticationBotToken>(args));
|
send_request(make_tl_object<td_api::checkAuthenticationBotToken>(args));
|
||||||
} else if (op == "rapr") {
|
} else if (op == "rapr") {
|
||||||
send_request(make_tl_object<td_api::requestAuthenticationPasswordRecovery>());
|
send_request(make_tl_object<td_api::requestAuthenticationPasswordRecovery>());
|
||||||
|
Reference in New Issue
Block a user