Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

send user id to server on requesting purchase

ammarahm-ed6ea84beb323c
diff --git a/apps/mobile/src/components/Premium/PremiumDialog.js b/apps/mobile/src/components/Premium/PremiumDialog.js
index 142ff18ec..53e3c028d 100644
--- a/apps/mobile/src/components/Premium/PremiumDialog.js
+++ b/apps/mobile/src/components/Premium/PremiumDialog.js
@@ -254,7 +254,14 @@ class PremiumDialog extends React.Component {
eSendEvent(eOpenLoginDialog);
}, 400);
} else {
- RNIap.requestSubscription(this.state.product?.productId)
+ RNIap.requestSubscription(
+ this.state.product?.productId,
+ false,
+ null,
+ null,
+ null,
+ this.state.user.id,
+ )
.then((r) => {})
.catch((e) => {
console.log(e);