Merge tag 'v5.13.1' into dev

This commit is contained in:
AlexeyZavar
2025-04-25 02:03:14 +03:00
200 changed files with 6117 additions and 1350 deletions
+5
View File
@@ -1319,6 +1319,10 @@ bool PeerData::isVerifyCodes() const {
return (id == kVerifyCodesId);
}
bool PeerData::isFreezeAppealChat() const {
return username().compare(u"spambot"_q, Qt::CaseInsensitive) == 0;
}
bool PeerData::sharedMediaInfo() const {
return isSelf() || isRepliesChat();
}
@@ -1453,6 +1457,7 @@ bool PeerData::canRevokeFullHistory() const {
if (const auto user = asUser()) {
return !isSelf()
&& (!user->isBot() || user->isSupport())
&& !user->isInaccessible()
&& session().serverConfig().revokePrivateInbox
&& (session().serverConfig().revokePrivateTimeLimit == 0x7FFFFFFF);
} else if (const auto chat = asChat()) {