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

Make notification manager creation async

This commit is contained in:
Ilya Fedin
2021-01-21 14:18:40 +04:00
committed by John Preston
parent a0a71687e7
commit e8edbb16ae
10 changed files with 152 additions and 82 deletions

View File

@@ -43,6 +43,10 @@ public:
Manager(System *system);
~Manager();
[[nodiscard]] ManagerType type() const override {
return ManagerType::Default;
}
template <typename Method>
void enumerateNotifications(Method method) {
for (const auto &notification : _notifications) {