mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-29 13:47:47 +00:00
Fixed update of flag for group calls from mtp chat data.
This commit is contained in:
parent
0c17bdc783
commit
cd032f5c16
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user