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

Give some admin rights to confcall creator.

This commit is contained in:
John Preston
2025-03-30 16:14:48 +05:00
parent c846eeed9d
commit e33a866a63
7 changed files with 27 additions and 12 deletions

View File

@@ -1239,8 +1239,13 @@ void GroupCall::join(const MTPInputGroupCall &inputCall) {
}
}, _lifetime);
if (_conferenceCall) {
_canManage = _conferenceCall->canManage();
return;
}
_peer->session().updates().addActiveChat(
_peerStream.events_starting_with_copy(_peer));
_canManage = Data::CanManageGroupCallValue(_peer);
SubscribeToMigration(_peer, _lifetime, [=](not_null<ChannelData*> group) {
_peer = group;
_canManage = Data::CanManageGroupCallValue(_peer);