We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3acc20 commit f18f6ebCopy full SHA for f18f6eb
contacts.mm
@@ -659,7 +659,11 @@ CNAuthorizationStatus AuthStatus() {
659
addObserverForName:CNContactStoreDidChangeNotification
660
object:nil
661
queue:[NSOperationQueue mainQueue]
662
- usingBlock:^(NSNotification *note) {
+ usingBlock:^(NSNotification *notification) {
663
+ NSDictionary *info = [notification userInfo];
664
+ if ([info count] == 0)
665
+ return;
666
+
667
contacts_ref.Reset();
668
auto callback = [](Napi::Env env, Napi::Function js_cb,
669
const char *value) {
0 commit comments