2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Support broadcast mode in voice chats.

This commit is contained in:
John Preston
2021-03-08 18:39:36 +04:00
parent ccd440ea0b
commit f66d7088ef
8 changed files with 232 additions and 29 deletions

View File

@@ -904,7 +904,7 @@ bool PeerData::canManageGroupCall() const {
if (const auto chat = asChat()) {
return chat->amCreator()
|| (chat->adminRights() & ChatAdminRight::f_manage_call);
} else if (const auto group = asMegagroup()) {
} else if (const auto group = asChannel()) {
return group->amCreator()
|| (group->adminRights() & ChatAdminRight::f_manage_call);
}
@@ -914,7 +914,7 @@ bool PeerData::canManageGroupCall() const {
Data::GroupCall *PeerData::groupCall() const {
if (const auto chat = asChat()) {
return chat->groupCall();
} else if (const auto group = asMegagroup()) {
} else if (const auto group = asChannel()) {
return group->groupCall();
}
return nullptr;
@@ -923,7 +923,7 @@ Data::GroupCall *PeerData::groupCall() const {
PeerId PeerData::groupCallDefaultJoinAs() const {
if (const auto chat = asChat()) {
return chat->groupCallDefaultJoinAs();
} else if (const auto group = asMegagroup()) {
} else if (const auto group = asChannel()) {
return group->groupCallDefaultJoinAs();
}
return 0;