Disable notifications on login (support).

This commit is contained in:
John Preston 2018-10-08 21:22:42 +03:00
parent 9f90d3a7fc
commit 44496c7053

View file

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