2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 00:55:12 +00:00

Hide video button if the call doesn't support video.

This commit is contained in:
John Preston
2021-05-26 14:27:48 +04:00
parent 7b6b32db74
commit c6f44e7928
6 changed files with 67 additions and 54 deletions

View File

@@ -387,6 +387,7 @@ void GroupCall::applyCallFields(const MTPDgroupCall &data) {
_recordStartDate = data.vrecord_start_date().value_or_empty();
_scheduleDate = data.vschedule_date().value_or_empty();
_scheduleStartSubscribed = data.is_schedule_start_subscribed();
_canStartVideo = data.is_can_start_video();
_allParticipantsLoaded
= (_serverParticipantsCount == _participants.size());
}