Update tgcalls library.

Fixes #24173.
This commit is contained in:
John Preston 2022-04-07 16:49:38 +04:00
parent 94c6793e92
commit 2b5d61ad36
4 changed files with 12 additions and 2 deletions

View file

@ -37,6 +37,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
namespace tgcalls { namespace tgcalls {
class InstanceImpl; class InstanceImpl;
class InstanceV2Impl; class InstanceV2Impl;
class InstanceV2_4_0_0Impl;
class InstanceImplLegacy; class InstanceImplLegacy;
void SetLegacyGlobalServerConfig(const std::string &serverConfig); void SetLegacyGlobalServerConfig(const std::string &serverConfig);
} // namespace tgcalls } // namespace tgcalls
@ -52,6 +53,7 @@ const auto kDefaultVersion = "2.4.4"_q;
const auto Register = tgcalls::Register<tgcalls::InstanceImpl>(); const auto Register = tgcalls::Register<tgcalls::InstanceImpl>();
const auto RegisterV2 = tgcalls::Register<tgcalls::InstanceV2Impl>(); const auto RegisterV2 = tgcalls::Register<tgcalls::InstanceV2Impl>();
const auto RegisterV240 = tgcalls::Register<tgcalls::InstanceV2_4_0_0Impl>();
const auto RegisterLegacy = tgcalls::Register<tgcalls::InstanceImplLegacy>(); const auto RegisterLegacy = tgcalls::Register<tgcalls::InstanceImplLegacy>();
void AppendEndpoint( void AppendEndpoint(

View file

@ -4440,7 +4440,7 @@ void HistoryWidget::updateSendButtonType() {
} }
bool HistoryWidget::updateCmdStartShown() { bool HistoryWidget::updateCmdStartShown() {
const auto bot = (_peer && _peer->asUser()->isBot()) const auto bot = (_peer && _peer->isUser() && _peer->asUser()->isBot())
? _peer->asUser() ? _peer->asUser()
: nullptr; : nullptr;
bool cmdStartShown = false; bool cmdStartShown = false;

@ -1 +1 @@
Subproject commit 6e6f09259d62eb3d1a64ca8ca93b4cbc9bdc53c7 Subproject commit 365f19aa577b480e424651a67f90f12d56379e11

View file

@ -55,6 +55,10 @@ PRIVATE
VideoCaptureInterfaceImpl.h VideoCaptureInterfaceImpl.h
VideoCapturerInterface.h VideoCapturerInterface.h
v2/ContentNegotiation.cpp
v2/ContentNegotiation.h
v2/InstanceV2ReferenceImpl.cpp
v2/InstanceV2ReferenceImpl.h
v2/InstanceV2Impl.cpp v2/InstanceV2Impl.cpp
v2/InstanceV2Impl.h v2/InstanceV2Impl.h
v2/NativeNetworkingImpl.cpp v2/NativeNetworkingImpl.cpp
@ -63,6 +67,10 @@ PRIVATE
v2/Signaling.h v2/Signaling.h
v2/SignalingEncryption.cpp v2/SignalingEncryption.cpp
v2/SignalingEncryption.h v2/SignalingEncryption.h
v2_4_0_0/InstanceV2_4_0_0Impl.cpp
v2_4_0_0/InstanceV2_4_0_0Impl.h
v2_4_0_0/Signaling_4_0_0.cpp
v2_4_0_0/Signaling_4_0_0.h
# Desktop capturer # Desktop capturer
desktop_capturer/DesktopCaptureSource.h desktop_capturer/DesktopCaptureSource.h