Disable notifications on login (support).

This commit is contained in:
John Preston 2018-10-08 21:22:42 +03:00
parent 9f90d3a7fc
commit 44496c7053
1 changed files with 4 additions and 2 deletions

View File

@ -42,10 +42,12 @@ namespace {
constexpr str_const kDefaultCountry = "US"; constexpr str_const kDefaultCountry = "US";
void DisableAnimationsOnLogin() { void PrepareSupportMode() {
anim::SetDisabled(true); anim::SetDisabled(true);
Local::writeSettings(); Local::writeSettings();
Global::SetDesktopNotify(false);
Global::SetSoundNotify(false);
cSetAutoPlayGif(false); cSetAutoPlayGif(false);
Local::writeUserSettings(); Local::writeUserSettings();
} }
@ -632,7 +634,7 @@ void Widget::Step::finish(const MTPUser &user, QImage &&photo) {
Auth().api().uploadPeerPhoto(Auth().user(), std::move(photo)); Auth().api().uploadPeerPhoto(Auth().user(), std::move(photo));
} }
if (Auth().supportMode()) { if (Auth().supportMode()) {
DisableAnimationsOnLogin(); PrepareSupportMode();
} }
} }
} }