Display a notification when there is a new message from the support team

This commit is contained in:
yflory
2019-07-16 14:31:57 +02:00
parent f111be72e6
commit a169b4c3b3
3 changed files with 30 additions and 0 deletions

View File

@@ -37,6 +37,13 @@ define([
channel: dest.channel,
curvePublic: dest.curvePublic
});
if (ctx.isAdmin) {
common.mailbox.sendTo('SUPPORT_MESSAGE', {}, {
channel: dest.notifications,
curvePublic: dest.curvePublic
});
}
};
var sendForm = function (ctx, id, form, dest) {