Disable crowdfunding message for premium users

This commit is contained in:
yflory
2018-09-14 11:21:52 +02:00
parent 6257b23f16
commit 1895d6cbd8
4 changed files with 8 additions and 2 deletions

View File

@@ -2330,6 +2330,9 @@ define([
UIElements.displayCrowdfunding = function (common) {
if (crowdfundingState) { return; }
if (AppConfig.disableCrowdfundingMessages) { return; }
var priv = common.getMetadataMgr().getPrivateData();
if (priv.plan) { return; }
crowdfundingState = true;
setTimeout(function () {
common.getAttribute(['general', 'crowdfunding'], function (err, val) {