mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-06 03:42:56 +00:00
Use 48 bit [User/Chat/Channel]Id, 56 bit PeerId.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user