[IMP] mail: Add simple partner notification

This commit is contained in:
Rémi Rahir
2019-07-18 11:51:57 +00:00
parent a6805b7280
commit e50800deaf
@@ -361,6 +361,9 @@ MailManager.include({
this._handlePartnerMailFailureNotification(data);
} else if (data.type === 'user_connection') {
this._handlePartnerUserConnectionNotification(data);
} else if (data.type === 'simple_notification') {
var title = _.escape(data.title), message = _.escape(data.message);
data.warning ? this.do_warn(title, message, data.sticky) : this.do_notify(title, message, data.sticky);
} else {
this._handlePartnerChannelNotification(data);
}