fix: build for macOS

This commit is contained in:
AlexeyZavar
2024-10-22 03:45:31 +03:00
parent 214f48922e
commit 4e0ffc1e28
11 changed files with 10 additions and 35 deletions
+1 -1
View File
@@ -221,7 +221,7 @@ bool NeedSaveMessage(not_null<HistoryItem *> item) {
}
if (const auto possiblyBot = item->history()->peer->asUser()) {
return !possiblyBot->isBot() || settings->saveForBots && possiblyBot->isBot();
return !possiblyBot->isBot() || (settings->saveForBots && possiblyBot->isBot());
}
return true;
}