From 213a28eee3954896190309b5150eb8931758390e Mon Sep 17 00:00:00 2001 From: Joseph Donofry Date: Thu, 4 Aug 2022 17:57:43 -0400 Subject: [PATCH] Add notification authorization for badges on macOS --- src/notifications/ManagerMac.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notifications/ManagerMac.mm b/src/notifications/ManagerMac.mm index 8669432b..d5d900a7 100644 --- a/src/notifications/ManagerMac.mm +++ b/src/notifications/ManagerMac.mm @@ -47,7 +47,7 @@ NotificationsManager::objCxxPostNotification(const QString &room_name, const QString &informativeText, const QString &bodyImagePath) { - UNAuthorizationOptions options = UNAuthorizationOptionAlert + UNAuthorizationOptionSound; + UNAuthorizationOptions options = UNAuthorizationOptionAlert + UNAuthorizationOptionSound + UNAuthorizationOptionBadge; UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; [center requestAuthorizationWithOptions:options