|
|
@ -297,6 +297,7 @@ proxy.mailboxes = {
|
|
|
|
msg: msg,
|
|
|
|
msg: msg,
|
|
|
|
hash: hash
|
|
|
|
hash: hash
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
var notify = box.ready;
|
|
|
|
Handlers.add(ctx, box, message, function (dismissed, toDismiss) {
|
|
|
|
Handlers.add(ctx, box, message, function (dismissed, toDismiss) {
|
|
|
|
if (toDismiss) { // List of other messages to remove
|
|
|
|
if (toDismiss) { // List of other messages to remove
|
|
|
|
dismiss(ctx, toDismiss, '', function () {
|
|
|
|
dismiss(ctx, toDismiss, '', function () {
|
|
|
@ -314,8 +315,7 @@ proxy.mailboxes = {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
box.content[hash] = msg;
|
|
|
|
box.content[hash] = msg;
|
|
|
|
showMessage(ctx, type, message, null, function (obj) {
|
|
|
|
showMessage(ctx, type, message, null, function (obj) {
|
|
|
|
if (!box.ready) { return; }
|
|
|
|
if (!obj || !obj.msg || !notify) { return; }
|
|
|
|
if (!obj || !obj.msg) { return; }
|
|
|
|
|
|
|
|
Notify.system(undefined, obj.msg);
|
|
|
|
Notify.system(undefined, obj.msg);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|