mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 15:47:11 +02:00
Update tgcalls to use new protocol.
This commit is contained in:
parent
f3808bdc24
commit
c1f727bde9
3 changed files with 10 additions and 9 deletions
|
@ -643,18 +643,15 @@ void Call::startConfirmedCall(const MTPDphoneCall &call) {
|
|||
|
||||
void Call::createAndStartController(const MTPDphoneCall &call) {
|
||||
_discardByTimeoutTimer.cancel();
|
||||
if (!checkCallFields(call)) {
|
||||
if (!checkCallFields(call) || _authKey.size() != 256) {
|
||||
return;
|
||||
}
|
||||
|
||||
const auto &protocol = call.vprotocol().c_phoneCallProtocol();
|
||||
const auto &serverConfig = _user->session().serverConfig();
|
||||
|
||||
auto encryptionKeyValue = ranges::view::all(
|
||||
_authKey
|
||||
) | ranges::view::transform([](bytes::type byte) {
|
||||
return static_cast<uint8_t>(byte);
|
||||
}) | ranges::to_vector;
|
||||
auto encryptionKeyValue = std::make_shared<std::array<uint8_t, 256>>();
|
||||
memcpy(encryptionKeyValue->data(), _authKey.data(), 256);
|
||||
|
||||
const auto weak = base::make_weak(this);
|
||||
auto descriptor = tgcalls::Descriptor{
|
||||
|
|
2
Telegram/ThirdParty/tgcalls
vendored
2
Telegram/ThirdParty/tgcalls
vendored
|
@ -1 +1 @@
|
|||
Subproject commit 8364baddd1e731aec3ae71d6594c10750afce312
|
||||
Subproject commit cad0db2f0d96cf137820fd787e7def6b16ee55c7
|
|
@ -15,6 +15,10 @@ nice_target_sources(lib_tgcalls ${tgcalls_loc}
|
|||
PRIVATE
|
||||
CodecSelectHelper.cpp
|
||||
CodecSelectHelper.h
|
||||
CryptoHelper.cpp
|
||||
CryptoHelper.h
|
||||
EncryptedConnection.cpp
|
||||
EncryptedConnection.h
|
||||
Instance.cpp
|
||||
Instance.h
|
||||
InstanceImpl.cpp
|
||||
|
@ -25,10 +29,10 @@ PRIVATE
|
|||
Manager.h
|
||||
MediaManager.cpp
|
||||
MediaManager.h
|
||||
Message.cpp
|
||||
Message.h
|
||||
NetworkManager.cpp
|
||||
NetworkManager.h
|
||||
SignalingMessage.cpp
|
||||
SignalingMessage.h
|
||||
ThreadLocalObject.h
|
||||
VideoCaptureInterface.cpp
|
||||
VideoCaptureInterface.h
|
||||
|
|
Loading…
Add table
Reference in a new issue