Closed Bug 949021 Opened 11 years ago Closed 7 years ago

[Unagi_1.2][Pre-IOT] Contact's name not showed when receiving SMS class 0

Categories

(Firefox OS Graveyard :: Gaia::SMS, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: dpalomino, Unassigned, Mentored)

References

Details

(Whiteboard: [lang=js])

Attachments

(1 file)

Issue detected during pre-IOT for 1.2

Gecko: d77ba08
Gaia: 1b67b55
AU: AU_LINUX_GECKO_B2G_ICS_1.2.01.02.00.019.120

When receiving a SMS class 0, contact's name is not detected, even though it's stored in Contacts. MSISDN is showed instead. 

However, I think it is not a blocker issue for 1.2, as these messages are not typically sent by users but by operators or third companies, so it's not likely the user to have this contact stored.
I confirm that we just output the "number" without checking a match in the contact list, when we receive a class-0 SMS.

Should we really fix this eventually? Adding complexity for an edge case?
Assignee: nobody → promise09th
Comment on attachment 8380988 [details]
Pull Request URL #16584

I made a simple patch.
Can you check this patch?

Thanks
Attachment #8380988 - Flags: review?(felash)
Can you add a test for this?
I'm not sure we want to fix this actually.

Ayman, what do you think?
Flags: needinfo?(aymanmaat)
(In reply to Julien Wajsberg [:julienw] from comment #5)
> I'm not sure we want to fix this actually.
> 
> Ayman, what do you think?

Hi julien, I checked with TEF and we should pick up the name from the contact list if the number is stored in the contact list. Therefore this should be fixed and we should aim for v1.5
Flags: needinfo?(aymanmaat)
Thanks, then I'll move forward with the review :)
Comment on attachment 8380988 [details]
Pull Request URL #16584

This looks good but we need unit tests for this.

There is a activity_handler_test.js file where you can add a test.

There is a suite "receive class-0 message" that you can update, inspiring from the suites "contact retrieved (after getSelf)" and "contact without name (after getSelf)" to see how they manage to fake retrieving contacts.

Thanks a lot for your patch!
Attachment #8380988 - Flags: review?(felash) → feedback+
Assignee: promise09th → nobody
Needs someone to pick up the work that's already done here and finish it doing some unit tests.
Mentor: felash
Whiteboard: [lang=js]
This bug is still current.
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
Mass closing of Gaia::SMS bugs. End of an era :(
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: