Skip to content

Commit

Permalink
Merge pull request #47 from ExpressApp/feature/ki/open-personal-chat
Browse files Browse the repository at this point in the history
Add openPersonalChat alias
  • Loading branch information
ikudinov authored Jan 25, 2024
2 parents 01abf4d + 6b57ff7 commit 1427687
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@expressms/smartapp-sdk",
"version": "1.5.0-alpha.6",
"version": "1.5.0-alpha.7",
"description": "Smartapp SDK",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
createPersonalChat,
getContact,
openContactCard,
openPersonalChat,
requestSelfProfile,
sendMessage,
} from './lib/contacts'
Expand Down Expand Up @@ -70,4 +71,5 @@ export {
clientStorageSet,
clientStorageRemove,
clientStorageClear,
openPersonalChat,
}
5 changes: 5 additions & 0 deletions src/lib/contacts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ const createPersonalChat = ({ huid }: { huid: string }) => {
})
}

const openPersonalChat = ({ huid }: { huid: string }) => {
return createPersonalChat({ huid })
}

const sendMessage = (
{
userHuid = null,
Expand Down Expand Up @@ -72,4 +76,5 @@ export {
sendMessage,
openContactCard,
requestSelfProfile,
openPersonalChat,
}

0 comments on commit 1427687

Please sign in to comment.