Get dialog unread marks only after getDifference.

GitOrigin-RevId: a0c12f5d4ed032c4e221945130f3c487bae101c0
This commit is contained in:
levlam 2018-07-19 01:33:04 +03:00
parent 6ca79487e2
commit 7b656da0c8
2 changed files with 5 additions and 5 deletions

View File

@ -7302,6 +7302,10 @@ void MessagesManager::after_get_difference() {
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();
// 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());
} else {
G()->td_db()->get_binlog_pmc()->erase("last_server_dialog_date");

View File

@ -1154,7 +1154,7 @@ class CliClient final : public Actor {
send_request(make_tl_object<td_api::checkAuthenticationCode>(code, first_name, last_name));
} else if (op == "cap") {
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));
} else if (op == "rapr") {
send_request(make_tl_object<td_api::requestAuthenticationPasswordRecovery>());