Skip to content

Commit

Permalink
Merge pull request #17 from AmityCo/fix/asc-26123
Browse files Browse the repository at this point in the history
fix: ASC-26123 - add prefixDeviceIdKey when create a client
  • Loading branch information
ptchayap authored Oct 17, 2024
2 parents 11db3e6 + 6bf1b73 commit c824c7f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@amityco/react-native-cli-chat-ui-kit",
"version": "0.5.0",
"version": "0.5.1",
"description": "Chat UIKit",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -174,7 +174,7 @@
]
},
"dependencies": {
"@amityco/ts-sdk-react-native": "^6.30.2",
"@amityco/ts-sdk-react-native": "^6.31.1",
"@reduxjs/toolkit": "^2.2.5",
"i18next": "22.4.10",
"moment": "2.29.4",
Expand Down
1 change: 1 addition & 0 deletions src/providers/auth-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const AuthContextProvider: FC<IAmityUIkitProvider> = ({

const client: Amity.Client = Client.createClient(apiKey, apiRegion, {
apiEndpoint: { http: apiEndpoint },
prefixDeviceIdKey: 'chat',
});

const sessionHandler: Amity.SessionHandler = {
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@amityco/react-native-cli-chat-ui-kit@workspace:."
dependencies:
"@amityco/ts-sdk-react-native": 6.30.2
"@amityco/ts-sdk-react-native": 6.31.1
"@commitlint/config-conventional": ^17.0.2
"@evilmartians/lefthook": ^1.5.0
"@react-native-async-storage/async-storage": ^1.22.3
Expand Down Expand Up @@ -98,9 +98,9 @@ __metadata:
languageName: unknown
linkType: soft

"@amityco/ts-sdk-react-native@npm:6.30.2":
version: 6.30.2
resolution: "@amityco/ts-sdk-react-native@npm:6.30.2"
"@amityco/ts-sdk-react-native@npm:6.31.1":
version: 6.31.1
resolution: "@amityco/ts-sdk-react-native@npm:6.31.1"
dependencies:
"@react-native-async-storage/async-storage": ^1.17.7
"@react-native-community/netinfo": ^9.4.1
Expand All @@ -118,7 +118,7 @@ __metadata:
ts-jest: ^28.0.3
peerDependencies:
react-native: ^0.70.13
checksum: 7f44348ff745d143e3426c3441868ccb3fa57a4137e34d6135edf33c2398ddfc8e848243ff76825511cc989e25e9321cbf9972bf135f1814b1c8c3fcbe648453
checksum: 60bcf7ebcd9bfc51b3946395a47c600e7237cb771a9599104c2af3dc48b2ed93ec27004735d26e42d1bdd4161db9ebf1e334e8f5d4f96218ab63ed9b5819b454
languageName: node
linkType: hard

Expand Down

0 comments on commit c824c7f

Please sign in to comment.