Skip to content

Commit f9888ec

Browse files
confirmation with feedback
1 parent 4550f8a commit f9888ec

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@codebolt/codeboltjs",
3-
"version": "1.1.64",
3+
"version": "1.1.65",
44
"description": "",
55
"keywords": [],
66
"author": "",

src/modules/chat.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,13 @@ const cbchat = {
148148
* Sends a confirmation request to the server with two options: Yes or No.
149149
* @returns {Promise<string>} A promise that resolves with the server's response.
150150
*/
151-
sendConfirmationRequest: (confirmationMessage: string, buttons: string[] = []): Promise<string> => {
151+
sendConfirmationRequest: (confirmationMessage: string, buttons: string[] = [],withFeedback:boolean=false): Promise<string> => {
152152
return new Promise((resolve, reject) => {
153153
cbws.getWebsocket.send(JSON.stringify({
154154
"type": "confirmationRequest",
155155
"message": confirmationMessage,
156-
buttons: buttons
156+
buttons: buttons,
157+
withFeedback
157158

158159
}));
159160
cbws.getWebsocket.on('message', (data: string) => {

0 commit comments

Comments
 (0)