Skip to content

Commit

Permalink
fix(mobile): unsubscribe from dapp notifications with account (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii authored Mar 8, 2024
1 parent 126981f commit 78255f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/mobile/src/libs/Tonapi/Tonapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ async function subscribeToNotifications(
export interface UnsubscribeToNotificationsParams {
app_url: string;
firebase_token: string;
account: string;
}

async function unsubscribeFromNotifications(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export const useConnectedAppsStore = create(
);

await Tonapi.unsubscribeFromNotifications(token, {
account: walletAddress,
app_url: fixedUrl,
firebase_token,
});
Expand Down

0 comments on commit 78255f1

Please sign in to comment.