|
|
@ -188,6 +188,7 @@ define([
|
|
|
|
var senderKey = content.sender && content.sender.edPublic;
|
|
|
|
var senderKey = content.sender && content.sender.edPublic;
|
|
|
|
var fromMe = senderKey === privateData.edPublic;
|
|
|
|
var fromMe = senderKey === privateData.edPublic;
|
|
|
|
var fromAdmin = ctx.adminKeys.indexOf(senderKey) !== -1;
|
|
|
|
var fromAdmin = ctx.adminKeys.indexOf(senderKey) !== -1;
|
|
|
|
|
|
|
|
var fromPremium = Boolean(privateData.plan);
|
|
|
|
|
|
|
|
|
|
|
|
var userData = h('div.cp-support-showdata', [
|
|
|
|
var userData = h('div.cp-support-showdata', [
|
|
|
|
Messages.support_showData,
|
|
|
|
Messages.support_showData,
|
|
|
@ -199,8 +200,10 @@ define([
|
|
|
|
ev.stopPropagation();
|
|
|
|
ev.stopPropagation();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var adminClass = (fromAdmin? '.cp-support-fromadmin': '');
|
|
|
|
|
|
|
|
var premiumClass = (fromPremium? '.cp-support-frompremium': '');
|
|
|
|
var name = Util.fixHTML(content.sender.name) || Messages.anonymous;
|
|
|
|
var name = Util.fixHTML(content.sender.name) || Messages.anonymous;
|
|
|
|
return h('div.cp-support-list-message' + (fromAdmin? '.cp-support-fromadmin': ''), {
|
|
|
|
return h('div.cp-support-list-message' + adminClass + premiumClass, {
|
|
|
|
'data-hash': hash
|
|
|
|
'data-hash': hash
|
|
|
|
}, [
|
|
|
|
}, [
|
|
|
|
h('div.cp-support-message-from' + (fromMe ? '.cp-support-fromme' : ''), [
|
|
|
|
h('div.cp-support-message-from' + (fromMe ? '.cp-support-fromme' : ''), [
|
|
|
|