Skip to content

Commit 9983c95

Browse files
author
Igor Khomenko
committed
Merge pull request #70 from QuickBlox/develop.QBWEBSDK-152
QB.chat.dialog.delete return JSON in callback, not string
2 parents 4b07b0d + 342f533 commit 9983c95

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

js/modules/qbChat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,9 +955,9 @@ DialogProxy.prototype = {
955955
Utils.QBLog('[DialogProxy]', 'delete', id);
956956

957957
if (arguments.length == 2) {
958-
this.service.ajax({url: Utils.getUrl(dialogUrl, id), type: 'DELETE', dataType: 'text'}, params_or_callback);
958+
this.service.ajax({url: Utils.getUrl(dialogUrl, id), type: 'DELETE'}, params_or_callback);
959959
} else if (arguments.length == 3) {
960-
this.service.ajax({url: Utils.getUrl(dialogUrl, id), type: 'DELETE', data: params_or_callback, dataType: 'text'}, callback);
960+
this.service.ajax({url: Utils.getUrl(dialogUrl, id), type: 'DELETE', data: params_or_callback}, callback);
961961
}
962962
}
963963
};

0 commit comments

Comments
 (0)