Add notification authorization for badges on macOS

This commit is contained in:
Joseph Donofry 2022-08-04 17:57:43 -04:00
parent a1968110d5
commit 213a28eee3
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -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