mirror of https://github.com/moparisthebest/mail
[WO-277] load body on incoming message
This commit is contained in:
parent
539f034254
commit
431ae8cd89
|
@ -24,6 +24,8 @@ define(function(require) {
|
||||||
$scope.synchronize(function() {
|
$scope.synchronize(function() {
|
||||||
// show notification
|
// show notification
|
||||||
notificationForEmail(email);
|
notificationForEmail(email);
|
||||||
|
// get message body
|
||||||
|
$scope.getBody($scope.filteredMessages[0]);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
chrome.notifications.onClicked.addListener(notificationClicked);
|
chrome.notifications.onClicked.addListener(notificationClicked);
|
||||||
|
|
|
@ -148,9 +148,13 @@ define(function(require) {
|
||||||
expect(opts.type).to.equal('basic');
|
expect(opts.type).to.equal('basic');
|
||||||
expect(opts.message).to.equal('asdasd');
|
expect(opts.message).to.equal('asdasd');
|
||||||
expect(opts.title).to.equal('asd');
|
expect(opts.title).to.equal('asd');
|
||||||
|
};
|
||||||
|
|
||||||
|
scope.getBody = function() {
|
||||||
done();
|
done();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
scope.filteredMessages = [{}];
|
||||||
emailDaoMock.onIncomingMessage(mail);
|
emailDaoMock.onIncomingMessage(mail);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue