diff --git a/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm b/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm index a298876c33..088a43bf90 100644 --- a/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm +++ b/Telegram/SourceFiles/platform/mac/notifications_manager_mac.mm @@ -303,6 +303,8 @@ void Manager::Private::clearingThreadLoop() { _clearingTasks.clear(); } + @autoreleasepool { + auto clearBySpecial = [&](NSDictionary *notificationUserInfo) { NSNumber *sessionObject = [notificationUserInfo objectForKey:@"session"]; const auto notificationSessionId = sessionObject ? [sessionObject unsignedLongLongValue] : 0; @@ -334,6 +336,8 @@ void Manager::Private::clearingThreadLoop() { } } } + + } } }