2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Slightly improved code style for long equality expressions.

This commit is contained in:
23rd
2024-04-11 18:56:11 +03:00
committed by John Preston
parent a37cbd7d05
commit 1c223e570a
48 changed files with 159 additions and 160 deletions

View File

@@ -1991,8 +1991,8 @@ void Account::readStickerSets(
if (datesCount != scnt) {
return failed();
}
const auto fillDates =
((set->id == Data::Stickers::CloudRecentSetId)
const auto fillDates
= ((set->id == Data::Stickers::CloudRecentSetId)
|| (set->id == Data::Stickers::CloudRecentAttachedSetId))
&& (set->stickers.size() == datesCount);
if (fillDates) {