mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
This commit is contained in:
@@ -1811,9 +1811,7 @@ void Updates::feedUpdate(const MTPUpdate &update) {
|
||||
return !session().data().folderLoaded(data.vfolder_id().v);
|
||||
});
|
||||
};
|
||||
const auto allLoaded = ranges::find_if(order, notLoaded)
|
||||
== order.end();
|
||||
if (!allLoaded) {
|
||||
if (!ranges::none_of(order, notLoaded)) {
|
||||
return false;
|
||||
}
|
||||
session().data().applyPinnedChats(folder, order);
|
||||
|
Reference in New Issue
Block a user