mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 14:08:41 +00:00
Fixed update of flag for group calls from mtp chat data.
This commit is contained in:
@@ -805,6 +805,8 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
|
||||
const auto canViewMembers = channel->canViewMembers();
|
||||
const auto canAddMembers = channel->canAddMembers();
|
||||
|
||||
const auto wasCallNotEmpty = Data::ChannelHasActiveCall(channel);
|
||||
|
||||
if (const auto count = data.vparticipants_count()) {
|
||||
channel->setMembersCount(count->v);
|
||||
}
|
||||
@@ -912,6 +914,9 @@ not_null<PeerData*> Session::processChat(const MTPChat &data) {
|
||||
|| canAddMembers != channel->canAddMembers()) {
|
||||
flags |= UpdateFlag::Rights;
|
||||
}
|
||||
if (wasCallNotEmpty != Data::ChannelHasActiveCall(channel)) {
|
||||
flags |= UpdateFlag::GroupCall;
|
||||
}
|
||||
}, [&](const MTPDchannelForbidden &data) {
|
||||
const auto channel = result->asChannel();
|
||||
|
||||
|
Reference in New Issue
Block a user