Skip to content

Commit

Permalink
feat: default to no action button
Browse files Browse the repository at this point in the history
BREAKING CHANGE: notifications do not show an unused "show" action button but default
  • Loading branch information
probablykasper authored and hoodie committed Aug 12, 2023
1 parent 827e06b commit 6bf2342
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions objc/notify.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ BOOL setApplication(NSString* newbundleIdentifier) {
userNotification.actionButtonTitle = options[@"mainButtonLabel"];
userNotification.hasActionButton = 1;
}
else
{
userNotification.hasActionButton = 0;
}

// Dropdown actions
if (options[@"actions"] && ![options[@"actions"] isEqualToString:@""]) {
Expand Down

0 comments on commit 6bf2342

Please sign in to comment.