2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Redesign auto download box.

This commit is contained in:
John Preston
2018-12-06 19:47:28 +04:00
parent 8e54ac4dcf
commit a0c6104fae
19 changed files with 298 additions and 219 deletions

View File

@@ -247,19 +247,9 @@ void Session::photoLoadSettingsChanged() {
}
}
void Session::voiceLoadSettingsChanged() {
void Session::documentLoadSettingsChanged() {
for (const auto &[id, document] : _documents) {
if (document->isVoiceMessage()) {
document->automaticLoadSettingsChanged();
}
}
}
void Session::animationLoadSettingsChanged() {
for (const auto &[id, document] : _documents) {
if (document->isAnimation()) {
document->automaticLoadSettingsChanged();
}
document->automaticLoadSettingsChanged();
}
}