Bug 872373 - B2G MMS: sendMMS(...) fails to create a proper thread ID for send/sending event. r=vicamo a=leo+

This commit is contained in:
Gene Lian 2013-05-15 12:42:27 +08:00
parent dee3a48ec3
commit 32d3ba4adc
2 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,7 @@ MmsMessage::MmsMessage(int32_t aId,
MmsMessage::MmsMessage(const mobilemessage::MmsMessageData& aData)
: mId(aData.id())
, mThreadId(aData.threadId())
, mDelivery(aData.delivery())
, mDeliveryStatus(aData.deliveryStatus())
, mSender(aData.sender())
@ -281,6 +282,7 @@ MmsMessage::GetData(ContentParent* aParent,
NS_ASSERTION(aParent, "aParent is null");
aData.id() = mId;
aData.threadId() = mThreadId;
aData.delivery() = mDelivery;
aData.deliveryStatus() = mDeliveryStatus;
aData.sender().Assign(mSender);

View File

@ -48,6 +48,7 @@ struct MmsAttachmentData
struct MmsMessageData
{
int32_t id;
uint64_t threadId;
DeliveryState delivery;
DeliveryStatus[] deliveryStatus;
nsString sender;