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

pull/1/head
ansuz 5 years ago
parent e2ff6c7c30
commit 57c5e664bb

@ -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 () {

Loading…
Cancel
Save