Bug 782489 - Use system messages to notify incoming sms events. r=philikon, sr=sicking

This commit is contained in:
Hsin-Yi Tsai 2012-09-06 11:03:54 +08:00
parent 031bc21605
commit 6f6f25f1de

View File

@ -1002,6 +1002,14 @@ RadioInterfaceLayer.prototype = {
message.timestamp,
false);
gSystemMessenger.broadcastMessage("sms-received",
{id: id,
delivery: DOM_SMS_DELIVERY_RECEIVED,
sender: message.sender || null,
receiver: message.receiver || null,
body: message.fullBody || null,
timestamp: message.timestamp,
read: false});
Services.obs.notifyObservers(sms, kSmsReceivedObserverTopic, null);
},