mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Update tgcalls to use new protocol.
This commit is contained in:
@@ -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
Submodule Telegram/ThirdParty/tgcalls updated: 8364baddd1...cad0db2f0d
@@ -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
|
||||
|
Reference in New Issue
Block a user