Bug 911026 - Fix the wrong argument pass through setMessageDeliveryByMessageId after enabling "Delivery reports". r=vyang

This commit is contained in:
Chia-hung Tai 2013-09-02 12:05:55 +08:00
parent 09491e927a
commit 662669be60

View File

@ -3129,11 +3129,11 @@ RadioInterface.prototype = {
.setMessageDeliveryByMessageId(context.sms.id,
null,
context.sms.delivery,
message.deliveryStatus,
response.deliveryStatus,
null,
function notifyResult(rv, domMessage) {
// TODO bug 832140 handle !Components.isSuccessCode(rv)
let topic = (message.deliveryStatus == RIL.GECKO_SMS_DELIVERY_STATUS_SUCCESS)
let topic = (response.deliveryStatus == RIL.GECKO_SMS_DELIVERY_STATUS_SUCCESS)
? kSmsDeliverySuccessObserverTopic
: kSmsDeliveryErrorObserverTopic;
Services.obs.notifyObservers(domMessage, topic, null);