2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Start group call bar in HistoryWidget.

This commit is contained in:
John Preston
2020-11-20 22:25:35 +03:00
parent 3aa2619a7f
commit 33941ad1b9
24 changed files with 1211 additions and 22 deletions

View File

@@ -289,7 +289,7 @@ void Call::startIncoming() {
}
void Call::answer() {
_delegate->requestPermissionsOrFail(crl::guard(this, [=] {
_delegate->callRequestPermissionsOrFail(crl::guard(this, [=] {
actuallyAnswer();
}));
}
@@ -776,11 +776,11 @@ void Call::createAndStartController(const MTPDphoneCall &call) {
auto callLogPath = callLogFolder + qsl("/last_call_log.txt");
auto callLogNative = QDir::toNativeSeparators(callLogPath);
#ifdef Q_OS_WIN
descriptor.config.logPath = callLogNative.toStdWString();
descriptor.config.logPath.data = callLogNative.toStdWString();
#else // Q_OS_WIN
const auto callLogUtf = QFile::encodeName(callLogNative);
descriptor.config.logPath.resize(callLogUtf.size());
ranges::copy(callLogUtf, descriptor.config.logPath.begin());
descriptor.config.logPath.data.resize(callLogUtf.size());
ranges::copy(callLogUtf, descriptor.config.logPath.data.begin());
#endif // Q_OS_WIN
QFile(callLogPath).remove();
QDir().mkpath(callLogFolder);