don't prompt users to upgrade to premium if subscriptions are disabled

This commit is contained in:
ansuz
2019-08-26 14:07:23 +02:00
parent e2ff6c7c30
commit 57c5e664bb

View File

@@ -894,7 +894,7 @@ MessengerUI, Messages) {
if (e) { return void console.error("Unable to get the pinned usage", e); } if (e) { return void console.error("Unable to get the pinned usage", e); }
if (overLimit) { if (overLimit) {
var key = 'pinLimitReachedAlert'; var key = 'pinLimitReachedAlert';
if (ApiConfig.noSubscriptionButton === true) { if (!ApiConfig.allowSubscriptions) {
key = 'pinLimitReachedAlertNoAccounts'; key = 'pinLimitReachedAlertNoAccounts';
} }
$limit.show().click(function () { $limit.show().click(function () {