mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Update libtgvoip.
This commit is contained in:
@@ -534,14 +534,16 @@ void Call::createAndStartController(const MTPDphoneCall &call) {
|
|||||||
if (Logs::DebugEnabled()) {
|
if (Logs::DebugEnabled()) {
|
||||||
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
auto callLogFolder = cWorkingDir() + qsl("DebugLogs");
|
||||||
auto callLogPath = callLogFolder + qsl("/last_call_log.txt");
|
auto callLogPath = callLogFolder + qsl("/last_call_log.txt");
|
||||||
auto callLogNative = QFile::encodeName(QDir::toNativeSeparators(callLogPath));
|
auto callLogNative = QDir::toNativeSeparators(callLogPath);
|
||||||
auto callLogBytesSrc = bytes::make_span(callLogNative);
|
#ifdef Q_OS_WIN
|
||||||
auto callLogBytesDst = bytes::make_span(config.logFilePath);
|
config.logFilePath = callLogNative.toStdWString();
|
||||||
if (callLogBytesSrc.size() + 1 <= callLogBytesDst.size()) { // +1 - zero-terminator
|
#else // Q_OS_WIN
|
||||||
QFile(callLogPath).remove();
|
const auto callLogUtf = QFile::encodeName(callLogNative);
|
||||||
QDir().mkpath(callLogFolder);
|
config.logFilePath.resize(callLogUtf.size());
|
||||||
bytes::copy(callLogBytesDst, callLogBytesSrc);
|
ranges::copy(callLogUtf, config.logFilePath.begin());
|
||||||
}
|
#endif // Q_OS_WIN
|
||||||
|
QFile(callLogPath).remove();
|
||||||
|
QDir().mkpath(callLogFolder);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto &protocol = call.vprotocol.c_phoneCallProtocol();
|
const auto &protocol = call.vprotocol.c_phoneCallProtocol();
|
||||||
|
2
Telegram/ThirdParty/libtgvoip
vendored
2
Telegram/ThirdParty/libtgvoip
vendored
Submodule Telegram/ThirdParty/libtgvoip updated: bfa1e6ab76...31fe4afdd0
Reference in New Issue
Block a user