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)
Firefox OS Graveyard
Gaia::SMS
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mounir, Unassigned)
Details
Attachments
(1 file)
194.48 KB,
image/jpeg
|
Details |
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.
Comment 2•12 years ago
|
||
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".
Comment 3•12 years ago
|
||
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)
Comment 4•12 years ago
|
||
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.
Comment 5•12 years ago
|
||
new MozActivity({
name: 'new',
data: {
type: 'websms/sms',
number: '999',
body: 'hi!'
}
});
See attachment
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Reporter | ||
Updated•12 years ago
|
Flags: needinfo?(mounir)
You need to log in
before you can comment on or make changes to this bug.
Description
•