Bug 1111528 - onpeerfound shouldn't be called when receiving NDEF from another peer. r=dimi

This commit is contained in:
Yoshi Huang 2014-12-15 18:19:25 +08:00
parent 1a8404d058
commit 214d28576e

View File

@ -471,7 +471,11 @@ Nfc.prototype = {
delete message.sessionId;
if (SessionHelper.isP2PSession(sessionId)) {
gMessageManager.onPeerEvent(NFC.PEER_EVENT_FOUND, message.sessionToken);
if (message.records) {
// TODO: Bug 1082493.
} else {
gMessageManager.onPeerEvent(NFC.PEER_EVENT_FOUND, message.sessionToken);
}
} else {
gMessageManager.onTagFound(message);
}