Remove default on_server_salt_updated implementation.
This commit is contained in:
parent
55e69f65af
commit
edfdcc0170
@ -406,6 +406,9 @@ ActorOwn<> get_full_config(DcOption option, Promise<FullConfig> promise, ActorSh
|
||||
void on_tmp_auth_key_updated(mtproto::AuthKey auth_key) final {
|
||||
// nop
|
||||
}
|
||||
void on_server_salt_updated(std::vector<mtproto::ServerSalt> server_salts) final {
|
||||
// nop
|
||||
}
|
||||
void on_result(NetQueryPtr net_query) final {
|
||||
G()->net_query_dispatcher().dispatch(std::move(net_query));
|
||||
}
|
||||
|
@ -61,9 +61,7 @@ class Session final
|
||||
virtual void request_raw_connection(unique_ptr<mtproto::AuthData> auth_data,
|
||||
Promise<unique_ptr<mtproto::RawConnection>>) = 0;
|
||||
virtual void on_tmp_auth_key_updated(mtproto::AuthKey auth_key) = 0;
|
||||
virtual void on_server_salt_updated(std::vector<mtproto::ServerSalt> server_salts) {
|
||||
}
|
||||
// one still have to call close after on_closed
|
||||
virtual void on_server_salt_updated(std::vector<mtproto::ServerSalt> server_salts) = 0;
|
||||
virtual void on_result(NetQueryPtr net_query) = 0;
|
||||
};
|
||||
|
||||
|
@ -240,6 +240,7 @@ void SessionProxy::on_tmp_auth_key_updated(mtproto::AuthKey auth_key) {
|
||||
LOG(WARNING) << "Have tmp_auth_key " << auth_key.id() << ": " << state;
|
||||
tmp_auth_key_ = std::move(auth_key);
|
||||
}
|
||||
|
||||
void SessionProxy::on_server_salt_updated(std::vector<mtproto::ServerSalt> server_salts) {
|
||||
server_salts_ = std::move(server_salts);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user