Skip to content

Commit

Permalink
Force binlog sync after logging in.
Browse files Browse the repository at this point in the history
  • Loading branch information
levlam committed Jul 26, 2021
1 parent c5437ef commit 2aa683b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions td/telegram/ContactsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4977,6 +4977,7 @@ void ContactsManager::set_my_id(UserId my_id) {
my_id_ = my_id;
G()->td_db()->get_binlog_pmc()->set("my_id", to_string(my_id.get()));
G()->shared_config().set_option_integer("my_id", my_id_.get());
G()->td_db()->get_binlog_pmc()->force_sync(Promise<Unit>());
}
}

Expand Down

0 comments on commit 2aa683b

Please sign in to comment.