mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix bug with video_muted flag.
This commit is contained in:
parent
36888f844f
commit
8342b2d275
2 changed files with 3 additions and 2 deletions
|
@ -2066,7 +2066,7 @@ void GroupCall::sendSelfUpdate(SendUpdateType type) {
|
||||||
MTP_bool(muted() != MuteState::Active),
|
MTP_bool(muted() != MuteState::Active),
|
||||||
MTP_int(100000), // volume
|
MTP_int(100000), // volume
|
||||||
MTP_bool(muted() == MuteState::RaisedHand),
|
MTP_bool(muted() == MuteState::RaisedHand),
|
||||||
MTP_bool(_videoOutgoing->state() == Webrtc::VideoState::Active)
|
MTP_bool(_videoOutgoing->state() != Webrtc::VideoState::Active)
|
||||||
)).done([=](const MTPUpdates &result) {
|
)).done([=](const MTPUpdates &result) {
|
||||||
_updateMuteRequestId = 0;
|
_updateMuteRequestId = 0;
|
||||||
_peer->session().api().applyUpdates(result);
|
_peer->session().api().applyUpdates(result);
|
||||||
|
|
|
@ -690,7 +690,8 @@ bool Row::paintVideo(Painter &p, int x, int y, int size, PanelMode mode) {
|
||||||
_videoTrackShown->markFrameShown();
|
_videoTrackShown->markFrameShown();
|
||||||
});
|
});
|
||||||
const auto videoSize = _videoTrackShown->frameSize();
|
const auto videoSize = _videoTrackShown->frameSize();
|
||||||
if (videoSize.isEmpty()) {
|
if (videoSize.isEmpty()
|
||||||
|
|| _videoTrackShown->state() != Webrtc::VideoState::Active) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const auto resize = (videoSize.width() > videoSize.height())
|
const auto resize = (videoSize.width() > videoSize.height())
|
||||||
|
|
Loading…
Add table
Reference in a new issue