You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by vladimir-kotikov <gi...@git.apache.org> on 2015/11/26 13:25:57 UTC

[GitHub] cordova-plugin-contacts pull request: CB-6979 Don't create duplica...

GitHub user vladimir-kotikov opened a pull request:

    https://github.com/apache/cordova-plugin-contacts/pull/89

    CB-6979 Don't create duplicates for extracted contacts photos

    Fix for [CB-6979](https://issues.apache.org/jira/browse/CB-6979)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-plugin-contacts CB-6979

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-plugin-contacts/pull/89.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #89
    
----
commit 9df4809abe1b2d1ad04031e5a02a046757b20947
Author: Vladimir Kotikov <v-...@microsoft.com>
Date:   2015-11-26T12:21:57Z

    CB-6979 Don't create duplicates for extracted contacts photos

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-plugin-contacts pull request: CB-6979 Don't create duplica...

Posted by daserge <gi...@git.apache.org>.
Github user daserge commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-contacts/pull/89#discussion_r45988996
  
    --- Diff: src/ios/CDVContact.m ---
    @@ -1324,6 +1324,7 @@ - (NSObject*)extractPhotos
         NSMutableArray* photos = nil;
     
         if (ABPersonHasImageData(self.record)) {
    +        CFIndex photoId = ABRecordGetRecordID(self.record);
    --- End diff --
    
    Will this always return a valid value?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-plugin-contacts pull request: CB-6979 Don't create duplica...

Posted by vladimir-kotikov <gi...@git.apache.org>.
Github user vladimir-kotikov commented on a diff in the pull request:

    https://github.com/apache/cordova-plugin-contacts/pull/89#discussion_r46032879
  
    --- Diff: src/ios/CDVContact.m ---
    @@ -1324,6 +1324,7 @@ - (NSObject*)extractPhotos
         NSMutableArray* photos = nil;
     
         if (ABPersonHasImageData(self.record)) {
    +        CFIndex photoId = ABRecordGetRecordID(self.record);
    --- End diff --
    
    Yes. It can also return `-1` when pemission to address book is denied, but this is hardly ever possible in our case, since we now asking for permissions always (since https://github.com/apache/cordova-plugin-contacts/commit/617fb764bf1c7047cfe02cf346771dd7fa38ed40)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


[GitHub] cordova-plugin-contacts pull request: CB-6979 Don't create duplica...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/cordova-plugin-contacts/pull/89


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org