diff --git a/td/telegram/NotificationSound.cpp b/td/telegram/NotificationSound.cpp index dfe1e5203..97f805764 100644 --- a/td/telegram/NotificationSound.cpp +++ b/td/telegram/NotificationSound.cpp @@ -256,7 +256,7 @@ unique_ptr get_notification_sound(telegram_api::peerNotifySet telegram_api::NotificationSound *sound = #if TD_ANDROID for_stories ? settings->stories_android_sound_.get() : settings->android_sound_.get(); -#elif TD_DARWIN_IOS || TD_DARWIN_TV_OS || TD_DARWIN_WATCH_OS +#elif TD_DARWIN_IOS || TD_DARWIN_TV_OS || TD_DARWIN_VISION_OS || TD_DARWIN_WATCH_OS || TD_DARWIN_UNKNOWN for_stories ? settings->stories_ios_sound_.get() : settings->ios_sound_.get(); #else for_stories ? settings->stories_other_sound_.get() : settings->other_sound_.get(); diff --git a/td/telegram/SecretChatsManager.cpp b/td/telegram/SecretChatsManager.cpp index a7d92180a..aa525421a 100644 --- a/td/telegram/SecretChatsManager.cpp +++ b/td/telegram/SecretChatsManager.cpp @@ -168,7 +168,7 @@ void SecretChatsManager::on_update_chat(tl_object_ptrchat_->get_id() == telegram_api::encryptedChatRequested::ID) { -#if TD_ANDROID || TD_DARWIN_IOS || TD_DARWIN_WATCH_OS || TD_TIZEN +#if TD_ANDROID || TD_DARWIN_IOS pending_update.offline_process_time_ = Timestamp::in(1.0); #else pending_update.online_process_time_ = Timestamp::in(2.0); diff --git a/td/telegram/net/ConnectionCreator.h b/td/telegram/net/ConnectionCreator.h index e210feeb9..d43bd92fd 100644 --- a/td/telegram/net/ConnectionCreator.h +++ b/td/telegram/net/ConnectionCreator.h @@ -119,7 +119,7 @@ class ConnectionCreator final : public NetQueryCallback { struct ClientInfo { class Backoff { -#if TD_ANDROID || TD_DARWIN_IOS || TD_DARWIN_WATCH_OS || TD_TIZEN +#if TD_ANDROID || TD_DARWIN_IOS || TD_DARWIN_VISION_OS || TD_DARWIN_WATCH_OS || TD_TIZEN static constexpr int32 MAX_BACKOFF = 300; #else static constexpr int32 MAX_BACKOFF = 16; diff --git a/tdutils/td/utils/port/platform.h b/tdutils/td/utils/port/platform.h index 09f111b14..7ca7ee20d 100644 --- a/tdutils/td/utils/port/platform.h +++ b/tdutils/td/utils/port/platform.h @@ -25,6 +25,8 @@ #define TD_DARWIN_IOS 1 #elif TARGET_OS_TV #define TD_DARWIN_TV_OS 1 + #elif TARGET_OS_VISION + #define TD_DARWIN_VISION_OS 1 #elif TARGET_OS_WATCH #define TD_DARWIN_WATCH_OS 1 #else diff --git a/tdutils/td/utils/port/uname.cpp b/tdutils/td/utils/port/uname.cpp index a6a3299cb..b73c186ba 100644 --- a/tdutils/td/utils/port/uname.cpp +++ b/tdutils/td/utils/port/uname.cpp @@ -81,6 +81,8 @@ Slice get_operating_system_version() { return "iOS" + os_version; #elif TD_DARWIN_TV_OS return "tvOS" + os_version; +#elif TD_DARWIN_VISIOM_OS + return "visionOS" + os_version; #elif TD_DARWIN_WATCH_OS return "watchOS" + os_version; #elif TD_DARWIN_MAC