Skip to content

Conversation

@Deepak-learner
Copy link

No description provided.

@Deepak-learner Deepak-learner changed the title add code for call status update [NEW] call status update Aug 4, 2021
@murtaza98
Copy link

murtaza98 commented Aug 5, 2021

FYI: This would require a new release of this SDK, however this release cannot be created until livechat-calls branch on the core is merged in develop because the API which we're calling from the SDK here is still on livechat-calls branch

}
async deleteVisitor () { return (await this.del(`livechat/visitor/${this.credentials.token}`)).visitor }
async updateVisitorStatus (status: string) { return (await this.post(`livechat/visitor.status`, { token: this.credentials.token, status })).status }
async updateCallStatus (callStatus: string, rid: string) { return (await this.post(`livechat/visitor.callStatus`, { token: this.credentials.token, callStatus, rid })).callStatus}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
async updateCallStatus (callStatus: string, rid: string) { return (await this.post(`livechat/visitor.callStatus`, { token: this.credentials.token, callStatus, rid })).callStatus}
async updateCallStatus (callStatus: string, rid: string) { return (await this.post(`livechat/visitor.callStatus`, { token: this.credentials.token, callStatus, rid })).callStatus }

@murtaza98 murtaza98 merged commit 0237aba into RocketChat:multiple-clients Sep 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants