2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Notify settings unknown => draw chats as muted.

Also request common notify settings at the app launch.
This commit is contained in:
John Preston
2018-06-07 22:28:09 +03:00
parent 472a677bca
commit 75a40b83ae
3 changed files with 5 additions and 5 deletions

View File

@@ -3700,6 +3700,9 @@ void MainWidget::mtpPing() {
}
void MainWidget::start(const MTPUser *self) {
Auth().api().requestNotifySettings(MTP_inputNotifyUsers());
Auth().api().requestNotifySettings(MTP_inputNotifyChats());
if (!self) {
MTP::send(MTPusers_GetFullUser(MTP_inputUserSelf()), rpcDone(&MainWidget::startWithSelf));
return;
@@ -3713,7 +3716,7 @@ void MainWidget::start(const MTPUser *self) {
Local::readSavedPeers();
cSetOtherOnline(0);
if (auto user = App::feedUsers(MTP_vector<MTPUser>(1, *self))) {
if (const auto user = App::feedUsers(MTP_vector<MTPUser>(1, *self))) {
user->loadUserpic();
}