Skip to content

Commit 4cac5b3

Browse files
fix: added owned check for plugins purchased externally
1 parent 84b3219 commit 4cac5b3

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/pages/plugin/plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ export default async function PluginInclude(
168168
]);
169169
if (product) {
170170
const purchase = await getPurchase(product.productId);
171-
purchased = !!purchase;
171+
purchased = !!purchase || remotePlugin.owned;
172172
price = product.price;
173173
purchaseToken = purchase?.purchaseToken;
174174
}

src/plugins/auth/src/android/PluginRetriever.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
public class PluginRetriever {
1717
private static final String TAG = "AcodePluginRetriever";
18-
private static final int LIMIT = 50;
19-
private static final String API_BASE = "https://acode.app/api";
2018
private static final String SUPPORTED_EDITOR = "cm";
2119

2220

0 commit comments

Comments
 (0)