diff --git a/Telegram/SourceFiles/settings/settings_notifications_type.h b/Telegram/SourceFiles/settings/settings_notifications_type.h index 4cb04c7a2..59014f0d5 100644 --- a/Telegram/SourceFiles/settings/settings_notifications_type.h +++ b/Telegram/SourceFiles/settings/settings_notifications_type.h @@ -16,25 +16,6 @@ enum class DefaultNotify; namespace Settings { -class NotificationsType; - -template -struct NotificationsTypeMetaImplementation : SectionMeta { - object_ptr create( - not_null parent, - not_null controller - ) const final override { - return object_ptr(parent, controller, kType); - } - - [[nodiscard]] static not_null Meta() { - static NotificationsTypeMetaImplementation result; - return &result; - } -}; - -[[nodiscard]] Type NotificationsTypeId(Data::DefaultNotify type); - class NotificationsType : public AbstractSection { public: NotificationsType( @@ -53,6 +34,23 @@ private: }; +template +struct NotificationsTypeMetaImplementation : SectionMeta { + object_ptr create( + not_null parent, + not_null controller + ) const final override { + return object_ptr(parent, controller, kType); + } + + [[nodiscard]] static not_null Meta() { + static NotificationsTypeMetaImplementation result; + return &result; + } +}; + +[[nodiscard]] Type NotificationsTypeId(Data::DefaultNotify type); + [[nodiscard]] bool NotificationsEnabledForType( not_null session, Data::DefaultNotify type);