2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Moved out data of notify settings to separated module.

This commit is contained in:
23rd
2022-04-01 13:18:07 +03:00
committed by John Preston
parent 5a3bbfbf62
commit 36bb23c54c
16 changed files with 380 additions and 286 deletions

View File

@@ -15,6 +15,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "history/history.h"
#include "history/history_item_components.h"
#include "lang/lang_keys.h"
#include "data/notify/data_notify_settings.h"
#include "data/data_session.h"
#include "data/data_channel.h"
#include "data/data_user.h"
@@ -196,12 +197,13 @@ System::SkipState System::computeSkipState(
}
if (messageNotification) {
history->owner().requestNotifySettings(history->peer);
history->owner().notifySettings().requestNotifySettings(
history->peer);
} else if (notifyBy->blockStatus() == PeerData::BlockStatus::Unknown) {
notifyBy->updateFull();
}
if (notifyBy) {
history->owner().requestNotifySettings(notifyBy);
history->owner().notifySettings().requestNotifySettings(notifyBy);
}
if (messageNotification