Skip to content

Commit

Permalink
fix: set correct return type for removeAllListeners()
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Oct 31, 2023
1 parent 676e11c commit 65a9d0c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/tricky-wombats-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@capacitor-firebase/authentication': patch
'@capacitor-firebase/messaging': patch
---

fix(ios): set correct return type for `removeAllListeners()`
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
CAP_PLUGIN_METHOD(updateProfile, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(useAppLanguage, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(useEmulator, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnNone);
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnPromise);
)
2 changes: 1 addition & 1 deletion packages/messaging/ios/Plugin/FirebaseMessagingPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CAP_PLUGIN_METHOD(getDeliveredNotifications, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(removeDeliveredNotifications, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(removeAllDeliveredNotifications, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnNone);
CAP_PLUGIN_METHOD(removeAllListeners, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(subscribeToTopic, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(unsubscribeFromTopic, CAPPluginReturnPromise);
CAP_PLUGIN_METHOD(createChannel, CAPPluginReturnPromise);
Expand Down

0 comments on commit 65a9d0c

Please sign in to comment.