mirror of
https://github.com/telegramdesktop/tdesktop
synced 2024-12-29 01:52:48 +00:00
Update libtgvoip.
This commit is contained in:
parent
c86252777b
commit
63103ede81
@ -534,14 +534,16 @@ void Call::createAndStartController(const MTPDphoneCall &call) {
|
||||
if (Logs::DebugEnabled()) {
|
||||
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
||||
auto callLogPath = callLogFolder + qsl("/last_call_log.txt");
|
||||
auto callLogNative = QFile::encodeName(QDir::toNativeSeparators(callLogPath));
|
||||
auto callLogBytesSrc = bytes::make_span(callLogNative);
|
||||
auto callLogBytesDst = bytes::make_span(config.logFilePath);
|
||||
if (callLogBytesSrc.size() + 1 <= callLogBytesDst.size()) { // +1 - zero-terminator
|
||||
QFile(callLogPath).remove();
|
||||
QDir().mkpath(callLogFolder);
|
||||
bytes::copy(callLogBytesDst, callLogBytesSrc);
|
||||
}
|
||||
auto callLogNative = QDir::toNativeSeparators(callLogPath);
|
||||
#ifdef Q_OS_WIN
|
||||
config.logFilePath = callLogNative.toStdWString();
|
||||
#else // Q_OS_WIN
|
||||
const auto callLogUtf = QFile::encodeName(callLogNative);
|
||||
config.logFilePath.resize(callLogUtf.size());
|
||||
ranges::copy(callLogUtf, config.logFilePath.begin());
|
||||
#endif // Q_OS_WIN
|
||||
QFile(callLogPath).remove();
|
||||
QDir().mkpath(callLogFolder);
|
||||
}
|
||||
|
||||
const auto &protocol = call.vprotocol.c_phoneCallProtocol();
|
||||
|
2
Telegram/ThirdParty/libtgvoip
vendored
2
Telegram/ThirdParty/libtgvoip
vendored
@ -1 +1 @@
|
||||
Subproject commit bfa1e6ab76a467c6c6bff7eabb7c213acc7a1b34
|
||||
Subproject commit 31fe4afdd09123e3a3bce8d8a736624808ef544b
|
Loading…
Reference in New Issue
Block a user