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
+4 -1
View File
@@ -17,6 +17,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "mtproto/mtp_instance.h"
#include "mtproto/mtproto_config.h"
#include "mtproto/mtproto_dc_options.h"
#include "data/notify/data_notify_settings.h"
#include "data/stickers/data_stickers.h"
#include "data/data_session.h"
#include "data/data_user.h"
@@ -1906,7 +1907,9 @@ void Updates::feedUpdate(const MTPUpdate &update) {
case mtpc_updateNotifySettings: {
auto &d = update.c_updateNotifySettings();
session().data().applyNotifySetting(d.vpeer(), d.vnotify_settings());
session().data().notifySettings().applyNotifySetting(
d.vpeer(),
d.vnotify_settings());
} break;
case mtpc_updateDcOptions: {