Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Contact's "Personal" email addresses do not come through #300

Closed
mdineen opened this Issue · 13 comments

4 participants

@mdineen

May be an issue for the contacts team, as the "Personal" flags do not show in the contact summary screen either. Doesn't appear to be any way to return these through webworks.

Dev alpha 10.0.9.388 320287

@kwallis
Owner

cc @rwmtse

@mdineen

"Personal" needs to map to blackberry.pim.contacts.ContactField.HOME, I think.

@rwmtse

@mdineen I just want to make sure I understand the issue here. Are you saying the email that has "type" set to ContactField.HOME is not persisted with the expected type?

I just ran a test on 10.0.9.389 (I believe the underlying Contact code should be the same), and it looks fine to me.

This is the contact I create:

var first_name, last_name, new_contact;
first_name = "Alessandro";
last_name = "Smith";
new_contact = contacts.create();
new_contact.name = new contacts.ContactName();
new_contact.name.givenName = first_name;
new_contact.name.familyName = last_name;
new_contact.emails = [ new contacts.ContactField("home", "abc@person.com", false),
new contacts.ContactField("work", "fgh@rim.com", true) ]; // ContactField.HOME is set to "home"

After save, I did a search and I could see both emails and I could see "abc@person.com" is tied to type "home".

Am I understanding the issue correctly?

I do notice the Contacts app does not show the "Personal" for the personal email in the details screen. But the WebWorks api does not seem to have the same problem.

@mdineen
@rwmtse

@mdineen I could reproduce the problem you observed. I am checking with the related teams now. Seems like the native api does not return email associated with type "Personal".

@rwmtse

@mdineen I've followed up with the Contacts app people. They should really use the "home" type as oppose to "personal" type on their end. So it's something they need to fix.

@kwallis There isn't anything that WebWorks has to fix for this issue. The contact is not created properly by the Contacts app. PR 222710 has been created to track it.

@mdineen
@kwallis
Owner

Let's leave this open for now to track as known issue etc. Once the PR is fixed and we have public builds out there we can close. Make sense?

@rwmtse

Sounds good.

@jeffheifetz

@rwmtse Whats the status of this?

@rwmtse

PR222710 has been fixed.

@jeffheifetz

So can this issue be closed, or should it be re-targetted to the next release?

@rwmtse

Can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.