Bug 921918 - 4.a/4: accommodate to setMessageDeliveryByEnvelopeId interface change. r=gene

This commit is contained in:
Vicamo Yang 2013-11-25 18:55:08 +08:00
Родитель e766d59f95
Коммит 50ef17de60
2 изменённых файлов: 7 добавлений и 11 удалений

Просмотреть файл

@ -1838,11 +1838,8 @@ MmsService.prototype = {
if (DEBUG) debug("Updating the delivery status to: " + deliveryStatus);
gMobileMessageDatabaseService
.setMessageDeliveryByEnvelopeId(envelopeId,
address,
null,
deliveryStatus,
(function notifySetDeliveryResult(aRv, aDomMessage) {
.setMessageDeliveryStatusByEnvelopeId(envelopeId, address, deliveryStatus,
(function(aRv, aDomMessage) {
if (DEBUG) debug("Marking the delivery status is done.");
// TODO bug 832140 handle !Components.isSuccessCode(aRv)

Просмотреть файл

@ -2136,12 +2136,11 @@ MobileMessageDatabaseService.prototype = {
},
setMessageDeliveryByEnvelopeId: function setMessageDeliveryByEnvelopeId(
envelopeId, receiver, delivery, deliveryStatus, callback) {
this.updateMessageDeliveryById(envelopeId, "envelopeId",
receiver, delivery, deliveryStatus,
null, callback);
setMessageDeliveryStatusByEnvelopeId:
function setMessageDeliveryStatusByEnvelopeId(aEnvelopeId, aReceiver,
aDeliveryStatus, aCallback) {
this.updateMessageDeliveryById(aEnvelopeId, "envelopeId", aReceiver, null,
aDeliveryStatus, null, aCallback);
},
getMessageRecordByTransactionId: function getMessageRecordByTransactionId(aTransactionId, aCallback) {