Skip to content

Commit

Permalink
Fix Reconnectable Chats API (#372)
Browse files Browse the repository at this point in the history
* Pass requestId on calling get reconnectable chats api

* Update CHANGELOG.md
  • Loading branch information
xTEddie authored Nov 7, 2024
1 parent 1afd893 commit 7abf881
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

### Fixed

- Add `requestId` to `OCClient.getReconnectableChats()` parameters

## [1.10.0] - 2024-10-31

### Changed
Expand Down
6 changes: 4 additions & 2 deletions src/OmnichannelChatSDK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,8 @@ class OmnichannelChatSDK {

try {
const reconnectableChatsParams: IReconnectableChatsParams = {
authenticatedUserToken: this.authenticatedUserToken as string
authenticatedUserToken: this.authenticatedUserToken as string,
requestId: this.requestId as string
}

const reconnectableChatsResponse = await this.OCClient.getReconnectableChats(reconnectableChatsParams);
Expand Down Expand Up @@ -552,7 +553,8 @@ class OmnichannelChatSDK {
if (this.isPersistentChat && !this.chatSDKConfig.persistentChat?.disable) {
try {
const reconnectableChatsParams: IReconnectableChatsParams = {
authenticatedUserToken: this.authenticatedUserToken as string
authenticatedUserToken: this.authenticatedUserToken as string,
requestId: this.requestId as string
}

const reconnectableChatsResponse = await this.OCClient.getReconnectableChats(reconnectableChatsParams);
Expand Down

0 comments on commit 7abf881

Please sign in to comment.