Skip to content

[NEW] call status update - #142

Merged
murtaza98 merged 1 commit into
RocketChat:multiple-clientsfrom
Deepak-learner:call-status-update
Sep 14, 2021
Merged

murtaza98 merged 1 commit into
RocketChat:multiple-clientsfrom
Deepak-learner:call-status-update

Conversation

@Deepak-learner

Copy link
Copy Markdown

No description provided.

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

murtaza98 commented Aug 5, 2021 •

Copy link
Copy Markdown

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

Comment thread src/lib/api/Livechat.ts
}
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}

Copy link
Copy Markdown

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