Skip to content

Commit

Permalink
libbase64 version is changed to static version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rleojoseph committed Mar 26, 2024
1 parent 4741025 commit cac428f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions js-miniapp-sample/src/services/message/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@ const getMessageTypeList = (): SetMessageTypeAction => {
};
};

const permissionsList = [
{
name: CustomPermissionName.SEND_MESSAGE,
description: 'We would like to send message from this mini app.',
},
];

const sendMessageToContact = (
image: String,
text: String,
Expand Down Expand Up @@ -61,6 +54,12 @@ const sendMessageToContactId = (
action: String
): Function => {
return async (dispatch) => {
const permissionsList = [
{
name: CustomPermissionName.SEND_MESSAGE,
description: 'We would like to send message from this mini app.',
},
];
const promise = MiniApp.requestCustomPermissions(permissionsList).then(
(permissions) => {
return permissions[0].status === CustomPermissionStatus.ALLOWED;
Expand Down
2 changes: 1 addition & 1 deletion js-miniapp-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"module": "build/js-miniapp-sdk/src/index.js",
"types": "build/js-miniapp-sdk/src/index.d.ts",
"dependencies": {
"libbase64": "^1.2.1"
"libbase64": "1.2.1"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
Expand Down

0 comments on commit cac428f

Please sign in to comment.