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:
@@ -548,10 +548,9 @@ bool Histories::postponeHistoryRequest(const State &state) const {
|
||||
}
|
||||
|
||||
bool Histories::postponeEntryRequest(const State &state) const {
|
||||
const auto i = ranges::find_if(state.sent, [](const auto &pair) {
|
||||
return ranges::any_of(state.sent, [](const auto &pair) {
|
||||
return pair.second.type != RequestType::History;
|
||||
});
|
||||
return (i != end(state.sent));
|
||||
}
|
||||
|
||||
void Histories::deleteMessages(
|
||||
|
Reference in New Issue
Block a user