Skip to content

Commit

Permalink
chore: messaging improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
iuricmp committed Oct 9, 2024
1 parent 9912b76 commit 26aa656
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mobile/redux/features/linkingSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ export const makeCallTxAndRedirect = createAsyncThunk<MakeTxResponse, { bech32:

const res = await gnonative.makeCallTx("gno.land/r/berty/social", "PostMessage", args, gasFee, gasWanted, address)

setTimeout(() =>
Linking.openURL('land.gno.gnokey://tosign?tx=' + encodeURIComponent(res.txJson)), 500)

setTimeout(() => {
const params = [`tx=${encodeURIComponent(res.txJson)}`, `address=${bech32}`, `client_name=dSocial`, `reason=Post a message`];
Linking.openURL('land.gno.gnokey://tosign?' + params.join('&'))
}, 500)
return res
})

Expand Down

0 comments on commit 26aa656

Please sign in to comment.