Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId.

This commit is contained in:
John Preston
2021-04-02 01:04:10 +04:00
parent 61d0cc38b0
commit 1342077dcb
83 changed files with 904 additions and 475 deletions
+5 -2
View File
@@ -133,12 +133,15 @@ bool PollData::applyResults(const MTPPollResults &results) {
}
}
if (const auto recent = results.vrecent_voters()) {
const auto bareProj = [](not_null<UserData*> user) {
return peerToUser(user->id).bare;
};
const auto recentChanged = !ranges::equal(
recentVoters,
recent->v,
ranges::equal_to(),
&UserData::id,
&MTPint::v);
bareProj,
&MTPint::v); // #TODO ids
if (recentChanged) {
changed = true;
recentVoters = ranges::views::all(