Skip to content

Commit

Permalink
Beta version 4.15.6: Fix build with GCC.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Mar 25, 2024
1 parent 8708598 commit 89c6bb1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Telegram/SourceFiles/calls/calls_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,23 +976,23 @@ 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
? RemoteBatteryState::Low
: 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()),
Expand Down

0 comments on commit 89c6bb1

Please sign in to comment.