Explicitly disable addProxy for watchOS and Emscripten.

This commit is contained in:
levlam 2023-11-24 00:09:36 +03:00
parent 499d4eaf54
commit 14ba66fb8b

View File

@ -168,6 +168,10 @@ void ConnectionCreator::add_proxy(int32 old_proxy_id, string server, int32 port,
G()->td_db()->get_binlog_pmc()->erase(get_proxy_used_database_key(old_proxy_id));
proxy_last_used_date_.erase(old_proxy_id);
proxy_last_used_saved_date_.erase(old_proxy_id);
} else {
#if TD_EMSCRIPTEN || TD_DARWIN_WATCH_OS
return promise.set_error(Status::Error(400, "The method is unsupported for the platform"));
#endif
}
auto proxy_id = [&] {