Skip to content

Commit

Permalink
fix: add notification on push notification click callback (#4613)
Browse files Browse the repository at this point in the history
## Explanation

Fix an issue where we don't pass the notification on the click callback.
Clients can still function by introspecting the event to get the
notification.

## References

N/A

## Changelog

### `@metamask/notification-services-controller`

- **ADDED**: notification parameter to the push notification click
callback.

## Checklist

- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
  • Loading branch information
Prithpal-Sooriya committed Aug 15, 2024
1 parent d1202fd commit 98d97f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export default class NotificationServicesPushController extends BaseController<
);
}

this.#config.onPushNotificationClicked(e);
this.#config.onPushNotificationClicked(e, n);
},
});

Expand Down

0 comments on commit 98d97f6

Please sign in to comment.