Skip to content

Commit cb5daad

Browse files
committed
QB.chat.send() and QB.chat.sendSystemMessage() can return msg.id
1 parent 8666897 commit cb5daad

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For correct work of JS SDK you must include the library in your html before `qu
2020

2121
```html
2222
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
23-
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.3.3/quickblox.min.js"></script>
23+
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.3.4/quickblox.min.js"></script>
2424
```
2525

2626
## Bower and RequireJS

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.3.3",
4+
"version": "2.3.4",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "quickblox.js",
77
"license": "Apache 2.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.3.3",
4+
"version": "2.3.4",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "src/qbMain.js",
77
"license" : "(Apache-2.0)",

quickblox.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/modules/qbChat.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,8 @@ ChatProxy.prototype = {
596596
}
597597

598598
connection.send(stanza);
599+
600+
return paramsCreateMsg.id;
599601
}
600602

601603
if(Utils.getEnv().node) {
@@ -634,10 +636,12 @@ ChatProxy.prototype = {
634636
xmlns: chatUtils.MARKERS.CLIENT
635637
}).c('moduleIdentifier').t('SystemNotifications').up();
636638

637-
stanza = chatUtils.filledExtraParams(stanza, message.extension);
639+
stanza = chatUtils.filledExtraParams(stanza, message.extension);
638640
}
639641

640642
connection.send(stanza);
643+
644+
return paramsCreateMsg.id;
641645
}
642646

643647
if(Utils.getEnv().node) {

src/qbConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
var config = {
13-
version: '2.3.3',
13+
version: '2.3.4',
1414
creds: {
1515
appId: '',
1616
authKey: '',

0 commit comments

Comments
 (0)