2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Hide members in RTMP streams.

This commit is contained in:
John Preston
2022-02-28 13:52:49 +03:00
parent 39c10b9e1c
commit 25e29d3dd5
5 changed files with 35 additions and 8 deletions

View File

@@ -68,7 +68,8 @@ GroupCall::GroupCall(
, _reloadByQueuedUpdatesTimer([=] { reload(); })
, _speakingByActiveFinishTimer([=] { checkFinishSpeakingByActive(); })
, _scheduleDate(scheduleDate)
, _rtmp(rtmp) {
, _rtmp(rtmp)
, _listenersHidden(rtmp) {
}
GroupCall::~GroupCall() {
@@ -89,6 +90,10 @@ bool GroupCall::rtmp() const {
return _rtmp;
}
bool GroupCall::listenersHidden() const {
return _listenersHidden;
}
not_null<PeerData*> GroupCall::peer() const {
return _peer;
}
@@ -395,6 +400,7 @@ void GroupCall::applyCallFields(const MTPDgroupCall &data) {
_version = 1;
}
_rtmp = data.is_rtmp_stream();
_listenersHidden = data.is_listeners_hidden();
_joinMuted = data.is_join_muted();
_canChangeJoinMuted = data.is_can_change_join_muted();
_joinedToTop = !data.is_join_date_asc();