2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Beta version 4.15.6: Fix build with GCC.

This commit is contained in:
John Preston
2024-03-25 11:19:31 +04:00
parent 8708598daa
commit 89c6bb163e

View File

@@ -976,16 +976,9 @@ void Call::createAndStartController(const MTPDphoneCall &call) {
handleControllerBarCountChange(count);
});
},
.remoteMediaStateUpdated = [=](
tgcalls::AudioState audio,
tgcalls::VideoState video) {
crl::on_main(weak, [=] {
updateRemoteMediaState(audio, video);
});
},
.remoteBatteryLevelIsLowUpdated = [=](bool isLow) {
#ifdef _DEBUG
isLow = true;
// isLow = true;
#endif
crl::on_main(weak, [=] {
_remoteBatteryState = isLow
@@ -993,6 +986,13 @@ void Call::createAndStartController(const MTPDphoneCall &call) {
: RemoteBatteryState::Normal;
});
},
.remoteMediaStateUpdated = [=](
tgcalls::AudioState audio,
tgcalls::VideoState video) {
crl::on_main(weak, [=] {
updateRemoteMediaState(audio, video);
});
},
.signalingDataEmitted = [=](const std::vector<uint8_t> &data) {
const auto bytes = QByteArray(
reinterpret_cast<const char*>(data.data()),