diff --git a/Telegram/SourceFiles/calls/calls_call.cpp b/Telegram/SourceFiles/calls/calls_call.cpp index 598a20184f..73a9b401ce 100644 --- a/Telegram/SourceFiles/calls/calls_call.cpp +++ b/Telegram/SourceFiles/calls/calls_call.cpp @@ -119,6 +119,8 @@ Call::ControllerPointer::~ControllerPointer() { reset(); } +Call::Delegate::~Delegate() = default; + Call::Call( not_null delegate, not_null user, diff --git a/Telegram/SourceFiles/calls/calls_call.h b/Telegram/SourceFiles/calls/calls_call.h index 0d28b89fb0..b45ff42400 100644 --- a/Telegram/SourceFiles/calls/calls_call.h +++ b/Telegram/SourceFiles/calls/calls_call.h @@ -47,6 +47,8 @@ public: }; virtual void playSound(Sound sound) = 0; + virtual ~Delegate(); + }; static constexpr auto kSoundSampleMs = 100; diff --git a/Telegram/SourceFiles/rpl/variable.h b/Telegram/SourceFiles/rpl/variable.h index 81ac32b86c..55eb3a0a95 100644 --- a/Telegram/SourceFiles/rpl/variable.h +++ b/Telegram/SourceFiles/rpl/variable.h @@ -96,7 +96,7 @@ public: std::is_assignable_v>> variable(producer &&stream) { std::move(stream) - | start_with_next([this](auto &&data) { + | start_with_next([=](auto &&data) { assign(std::forward(data)); }, _lifetime); } @@ -111,7 +111,7 @@ public: producer &&stream) { _lifetime.destroy(); std::move(stream) - | start_with_next([this](auto &&data) { + | start_with_next([=](auto &&data) { assign(std::forward(data)); }, _lifetime); return *this; diff --git a/Telegram/ThirdParty/libtgvoip b/Telegram/ThirdParty/libtgvoip index 6053cf5dce..9b292fdbc8 160000 --- a/Telegram/ThirdParty/libtgvoip +++ b/Telegram/ThirdParty/libtgvoip @@ -1 +1 @@ -Subproject commit 6053cf5dce58c12ef6ce2d2f6cbe77fd5b10c575 +Subproject commit 9b292fdbc84f148f736407176facc920e20592f9 diff --git a/Telegram/gyp/refresh.sh b/Telegram/gyp/refresh.sh index b14a91619c..c42c10f746 100755 --- a/Telegram/gyp/refresh.sh +++ b/Telegram/gyp/refresh.sh @@ -28,7 +28,7 @@ else #gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode-ninja #gyp --depth=. --generator-output=../.. -Goutput_dir=out Telegram.gyp --format=xcode # use patched gyp with Xcode project generator - ../../../Libraries/gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out -Gxcode_upgrade_check_project_version=940 -Dofficial_build_target=$BuildTarget Telegram.gyp --format=xcode + ../../../Libraries/gyp/gyp --depth=. --generator-output=.. -Goutput_dir=../out -Gxcode_upgrade_check_project_version=1000 -Dofficial_build_target=$BuildTarget Telegram.gyp --format=xcode fi cd ../.. diff --git a/Telegram/gyp/settings_mac.gypi b/Telegram/gyp/settings_mac.gypi index 75e9cf1cc1..c1427a5849 100644 --- a/Telegram/gyp/settings_mac.gypi +++ b/Telegram/gyp/settings_mac.gypi @@ -62,6 +62,7 @@ 'CLANG_CXX_LANGUAGE_STANDARD': 'c++1z', 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', + 'ALWAYS_SEARCH_USER_PATHS': 'NO', }, 'configurations': { 'Debug': { diff --git a/Telegram/gyp/telegram_mac.gypi b/Telegram/gyp/telegram_mac.gypi index 15f03c467f..c5580f80dc 100644 --- a/Telegram/gyp/telegram_mac.gypi +++ b/Telegram/gyp/telegram_mac.gypi @@ -40,6 +40,7 @@ 'xcode_settings': { 'OTHER_CPLUSPLUSFLAGS': [ '-nostdinc++' ], 'OTHER_LDFLAGS': [ + '-isysroot', '/', '-lbase', '-lcrashpad_client', '-lcrashpad_util',