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
@@ -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());
}