Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nheko Reborn
nheko
Commits
213a28ee
Verified
Commit
213a28ee
authored
Aug 04, 2022
by
Joe Donofry
Browse files
Add notification authorization for badges on macOS
parent
a1968110
Pipeline
#3470
passed with stages
in 40 minutes and 35 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/notifications/ManagerMac.mm
View file @
213a28ee
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment