2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Support joining to voice chats as a channel.

This commit is contained in:
John Preston
2021-03-05 12:14:34 +04:00
parent 02517f7221
commit 02e9b8fd18
18 changed files with 391 additions and 26 deletions

View File

@@ -920,6 +920,15 @@ Data::GroupCall *PeerData::groupCall() const {
return nullptr;
}
PeerId PeerData::groupCallDefaultJoinAs() const {
if (const auto chat = asChat()) {
return chat->groupCallDefaultJoinAs();
} else if (const auto group = asMegagroup()) {
return group->groupCallDefaultJoinAs();
}
return 0;
}
void PeerData::setIsBlocked(bool is) {
const auto status = is
? BlockStatus::Blocked