Closed Bug 852224 Opened 12 years ago Closed 12 years ago

SMS send activity should allow specifying the message's body

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mounir, Unassigned)

Details

Attachments

(1 file)

For the moment, the SMS send activity doesn't allow to specify the message's body for no apparent reason. We should fix that because most third party apps that will try to use this activity will try to specify a message.
function showThreadFromSystemMessage(number, body) seems to be handling this body and setting to MessageManager only when number is not present.
ActivityHandler.showThreadFromSystemMessage(message) now accepts a complete message object, which includes all of the message object properties. Regardless, it should be trivial to upgrade the send activity to include "body".
I think this is currently implemented here https://github.com/mozilla-b2g/gaia/blob/master/apps/sms/js/activity_handler.js#L45. Mounir, Do you mean that we need any extra feature here? Thanks!
Flags: needinfo?(mounir)
Borja, it's not enough to just point at an alias binding. Someone needs to test that sending an object with a "body" property does what is expected.
Attached image screen shot
new MozActivity({ name: 'new', data: { type: 'websms/sms', number: '999', body: 'hi!' } }); See attachment
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Flags: needinfo?(mounir)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: