taking count from getParticipants only if it is greater than current, version 0.9.2

This commit is contained in:
John Preston 2015-09-25 11:17:52 +03:00
parent 5b811500f6
commit d8b421993d
1 changed files with 2 additions and 2 deletions

View File

@ -1735,10 +1735,10 @@ void MembersInner::membersReceived(const MTPchannels_ChannelParticipants &result
_datas.reserve(v.size()); _datas.reserve(v.size());
_dates.reserve(v.size()); _dates.reserve(v.size());
_roles.reserve(v.size()); _roles.reserve(v.size());
if (_filter == MembersFilterRecent && _channel->count != d.vcount.v) { if (_filter == MembersFilterRecent && _channel->count < d.vcount.v) {
_channel->count = d.vcount.v; _channel->count = d.vcount.v;
if (App::main()) emit App::main()->peerUpdated(_channel); if (App::main()) emit App::main()->peerUpdated(_channel);
} else if (_filter == MembersFilterAdmins && _channel->adminsCount != d.vcount.v) { } else if (_filter == MembersFilterAdmins && _channel->adminsCount < d.vcount.v) {
_channel->adminsCount = d.vcount.v; _channel->adminsCount = d.vcount.v;
if (App::main()) emit App::main()->peerUpdated(_channel); if (App::main()) emit App::main()->peerUpdated(_channel);
} }