Skip to content

Commit 00cf565

Browse files
committed
Version updated to 2.12.5;
1 parent 9531f66 commit 00cf565

25 files changed

+577
-200
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
1616
## Dependencies for browser
1717

1818
```html
19-
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.12.4/quickblox.min.js"></script>
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/quickblox/2.12.5/quickblox.min.js"></script>
2020
```
2121

2222
## Bower and RequireJS
@@ -62,10 +62,6 @@ var QB2 = new QuickBlox();
6262

6363
You can look at it here https://quickblox.com/developers/Javascript
6464

65-
# Known issues
66-
67-
- We are recommend you to use BOSH chat protocol instead of WebSockets for EI/Edge browsers.
68-
6965
# Questions and feedback
7066

7167
Please raise questions, requests for help etc. via https://stackoverflow.com/questions/tagged/quickblox

docs/QB.addressbook.html

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,8 @@ <h4 class="name" id=".get">
709709

710710

711711
<div class="description">
712-
Retrive all contacts from address book.The method accepts 1 or 2 parameters.
712+
Retrive all contacts from address book.
713+
The method accepts 1 or 2 parameters.
713714
</div>
714715

715716

@@ -764,7 +765,8 @@ <h4 class="name" id=".get">
764765

765766

766767

767-
You could pass udid of address book orcallback function if you want to get contacts from global address book.</td>
768+
You could pass udid of address book or
769+
callback function if you want to get contacts from global address book.</td>
768770
</tr>
769771

770772

@@ -794,7 +796,8 @@ <h4 class="name" id=".get">
794796

795797

796798

797-
Callback function is used as 2nd parameter if you pass udid as 1st parameters.This callback takes 2 arguments: an error and a response.</td>
799+
Callback function is used as 2nd parameter if you pass udid as 1st parameters.
800+
This callback takes 2 arguments: an error and a response.</td>
798801
</tr>
799802

800803

@@ -843,7 +846,15 @@ <h5>Example</h5>
843846

844847

845848

846-
<pre class="prettyprint"><code>var UDID = 'D337E8A4-80AD-8ABA-9F5D-579EFF6BACAB';function gotContacts(err, contacts) { contacts.forEach( (contact) => { alert(contact); })}QB.addressbook.get(gotContacts);// or you could specify what address book you need by udidQB.addressbook.get(UDID, gotContacts);</code></pre>
849+
<pre class="prettyprint"><code>var UDID = 'D337E8A4-80AD-8ABA-9F5D-579EFF6BACAB';
850+
851+
function gotContacts(err, contacts) {
852+
contacts.forEach( (contact) => { alert(contact); })
853+
}
854+
855+
QB.addressbook.get(gotContacts);
856+
// or you could specify what address book you need by udid
857+
QB.addressbook.get(UDID, gotContacts);</code></pre>
847858

848859

849860

@@ -871,7 +882,8 @@ <h4 class="name" id=".getRegisteredUsers">
871882

872883

873884
<div class="description">
874-
Retrieve QuickBlox users that have phone numbers from your address book.The methods accepts 1 or 2 parameters.
885+
Retrieve QuickBlox users that have phone numbers from your address book.
886+
The methods accepts 1 or 2 parameters.
875887
</div>
876888

877889

@@ -956,7 +968,8 @@ <h4 class="name" id=".getRegisteredUsers">
956968

957969

958970

959-
Callback function is useв as 2nd parameter if you pass `isCompact` as 1st parameter.This callback takes 2 arguments: an error and a response.</td>
971+
Callback function is useв as 2nd parameter if you pass `isCompact` as 1st parameter.
972+
This callback takes 2 arguments: an error and a response.</td>
960973
</tr>
961974

962975

@@ -1025,7 +1038,11 @@ <h4 class="name" id=".uploadAddressBook">
10251038

10261039

10271040
<div class="description">
1028-
The method is used to create, update and delete contacts in address book.<br />If contact doesn't exist in address book then it will be created. If contacts exists then it will be updated.If pass 'destroy: 1' then the contact will be removed.<br /><a target="_blank" href="https://quickblox.com/developers/AddressBook">Found more here</a>. <br />The method accepts 2 or 3 parameters.
1041+
The method is used to create, update and delete contacts in address book.<br />
1042+
If contact doesn't exist in address book then it will be created. If contacts exists then it will be updated.
1043+
If pass 'destroy: 1' then the contact will be removed.<br />
1044+
<a target="_blank" href="https://quickblox.com/developers/AddressBook">Found more here</a>. <br />
1045+
The method accepts 2 or 3 parameters.
10291046
</div>
10301047

10311048

@@ -1153,7 +1170,8 @@ <h4 class="name" id=".uploadAddressBook">
11531170

11541171

11551172

1156-
User's device identifier. If specified all operations will be in this context. Max length 64 symbols.If not - it means a user has one global address book across all his devices.</td>
1173+
User's device identifier. If specified all operations will be in this context. Max length 64 symbols.
1174+
If not - it means a user has one global address book across all his devices.</td>
11571175
</tr>
11581176

11591177

@@ -1183,7 +1201,8 @@ <h4 class="name" id=".uploadAddressBook">
11831201

11841202

11851203

1186-
Defines force rewrite mode.If set 1 then all previous contacts for device context will be replaced by new ones.</td>
1204+
Defines force rewrite mode.
1205+
If set 1 then all previous contacts for device context will be replaced by new ones.</td>
11871206
</tr>
11881207

11891208

@@ -1266,7 +1285,31 @@ <h5>Example</h5>
12661285

12671286

12681287

1269-
<pre class="prettyprint"><code>var people = [{ 'name':'Frederic Cartwright', 'phone': '8879108395' }, { 'phone': '8759108396', 'destroy': 1 }]; var options = { force: 1, udid: 'A337E8A4-80AD-8ABA-9F5D-579EFF6BACAB' }; function addressBookSaved(err, response) { if(err) { } else { console.log('All constacts saved'); } } QB.addressbook.uploadAddressBook(addressBookList, savedAddressBookCallback); // or second parameters can be options QB.addressbook.uploadAddressBook(addressBookList, options, savedAddressBookCallback);</code></pre>
1288+
<pre class="prettyprint"><code>var people = [{
1289+
'name':'Frederic Cartwright',
1290+
'phone': '8879108395'
1291+
},
1292+
{
1293+
'phone': '8759108396',
1294+
'destroy': 1
1295+
}];
1296+
1297+
var options = {
1298+
force: 1,
1299+
udid: 'A337E8A4-80AD-8ABA-9F5D-579EFF6BACAB'
1300+
};
1301+
1302+
function addressBookSaved(err, response) {
1303+
if(err) {
1304+
1305+
} else {
1306+
console.log('All constacts saved');
1307+
}
1308+
}
1309+
1310+
QB.addressbook.uploadAddressBook(addressBookList, savedAddressBookCallback);
1311+
// or second parameters can be options
1312+
QB.addressbook.uploadAddressBook(addressBookList, options, savedAddressBookCallback);</code></pre>
12701313

12711314

12721315

@@ -1291,7 +1334,7 @@ <h5>Example</h5>
12911334

12921335

12931336
<footer>
1294-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
1337+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
12951338
</footer>
12961339
</div>
12971340
</div>

docs/QB.chat.dialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ <h4 class="name" id=".update">
13091309

13101310

13111311
<footer>
1312-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
1312+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
13131313
</footer>
13141314
</div>
13151315
</div>

docs/QB.chat.helpers.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ <h4 class="name" id=".getBsonObjectId">
745745

746746

747747
<div class="tag-source">
748-
modules/chat/qbChat.js, line 2413
748+
modules/chat/qbChat.js, line 2455
749749
</div>
750750

751751
</div>
@@ -845,7 +845,7 @@ <h4 class="name" id=".getDialogIdFromNode">
845845

846846

847847
<div class="tag-source">
848-
modules/chat/qbChat.js, line 2357
848+
modules/chat/qbChat.js, line 2399
849849
</div>
850850

851851
</div>
@@ -990,7 +990,7 @@ <h4 class="name" id=".getIdFromNode">
990990

991991

992992
<div class="tag-source">
993-
modules/chat/qbChat.js, line 2347
993+
modules/chat/qbChat.js, line 2389
994994
</div>
995995

996996
</div>
@@ -1135,7 +1135,7 @@ <h4 class="name" id=".getIdFromResource">
11351135

11361136

11371137
<div class="tag-source">
1138-
modules/chat/qbChat.js, line 2389
1138+
modules/chat/qbChat.js, line 2431
11391139
</div>
11401140

11411141
</div>
@@ -1280,7 +1280,7 @@ <h4 class="name" id=".getRecipientId">
12801280

12811281

12821282
<div class="tag-source">
1283-
modules/chat/qbChat.js, line 2307
1283+
modules/chat/qbChat.js, line 2349
12841284
</div>
12851285

12861286
</div>
@@ -1448,7 +1448,7 @@ <h4 class="name" id=".getRoomJid">
14481448

14491449

14501450
<div class="tag-source">
1451-
modules/chat/qbChat.js, line 2379
1451+
modules/chat/qbChat.js, line 2421
14521452
</div>
14531453

14541454
</div>
@@ -1616,7 +1616,7 @@ <h4 class="name" id=".getRoomJidFromDialogId">
16161616

16171617

16181618
<div class="tag-source">
1619-
modules/chat/qbChat.js, line 2368
1619+
modules/chat/qbChat.js, line 2410
16201620
</div>
16211621

16221622
</div>
@@ -1761,7 +1761,7 @@ <h4 class="name" id=".getRoomJidFromRoomFullJid">
17611761

17621762

17631763
<div class="tag-source">
1764-
modules/chat/qbChat.js, line 2402
1764+
modules/chat/qbChat.js, line 2444
17651765
</div>
17661766

17671767
</div>
@@ -1906,7 +1906,7 @@ <h4 class="name" id=".getUserIdFromRoomJid">
19061906

19071907

19081908
<div class="tag-source">
1909-
modules/chat/qbChat.js, line 2423
1909+
modules/chat/qbChat.js, line 2465
19101910
</div>
19111911

19121912
</div>
@@ -2051,7 +2051,7 @@ <h4 class="name" id=".getUserJid">
20512051

20522052

20532053
<div class="tag-source">
2054-
modules/chat/qbChat.js, line 2324
2054+
modules/chat/qbChat.js, line 2366
20552055
</div>
20562056

20572057
</div>
@@ -2219,7 +2219,7 @@ <h4 class="name" id=".getUserNickWithMucDomain">
22192219

22202220

22212221
<div class="tag-source">
2222-
modules/chat/qbChat.js, line 2337
2222+
modules/chat/qbChat.js, line 2379
22232223
</div>
22242224

22252225
</div>
@@ -2364,7 +2364,7 @@ <h4 class="name" id=".jidOrUserId">
23642364

23652365

23662366
<div class="tag-source">
2367-
modules/chat/qbChat.js, line 2270
2367+
modules/chat/qbChat.js, line 2312
23682368
</div>
23692369

23702370
</div>
@@ -2512,7 +2512,7 @@ <h4 class="name" id=".typeChat">
25122512

25132513

25142514
<div class="tag-source">
2515-
modules/chat/qbChat.js, line 2288
2515+
modules/chat/qbChat.js, line 2330
25162516
</div>
25172517

25182518
</div>
@@ -2668,7 +2668,7 @@ <h5>Returns:</h5>
26682668

26692669

26702670
<footer>
2671-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
2671+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
26722672
</footer>
26732673
</div>
26742674
</div>

docs/QB.chat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4160,7 +4160,7 @@ <h5>Returns:</h5>
41604160

41614161

41624162
<footer>
4163-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
4163+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
41644164
</footer>
41654165
</div>
41664166
</div>

docs/QB.chat.message.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ <h4 class="name" id=".update">
15571557

15581558

15591559
<footer>
1560-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
1560+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
15611561
</footer>
15621562
</div>
15631563
</div>

docs/QB.chat.muc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1121,7 +1121,7 @@ <h4 class="name" id=".listOnlineUsers">
11211121

11221122

11231123
<footer>
1124-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
1124+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
11251125
</footer>
11261126
</div>
11271127
</div>

docs/QB.chat.privacylist.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,8 @@ <h4 class="name" id=".getNames">
11241124

11251125

11261126
<div class="description">
1127-
Get names of privacy lists. <a target="_blank" href="https://quickblox.com/developers/Web_XMPP_Chat_Sample#Retrieve_privacy_lists_names">More info.</a>Run without parameters
1127+
Get names of privacy lists. <a target="_blank" href="https://quickblox.com/developers/Web_XMPP_Chat_Sample#Retrieve_privacy_lists_names">More info.</a>
1128+
Run without parameters
11281129
</div>
11291130

11301131

@@ -1515,7 +1516,7 @@ <h4 class="name" id=".update">
15151516

15161517

15171518
<footer>
1518-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
1519+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
15191520
</footer>
15201521
</div>
15211522
</div>

docs/QB.chat.roster.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,7 @@ <h4 class="name" id=".remove">
13881388

13891389

13901390
<footer>
1391-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
1391+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
13921392
</footer>
13931393
</div>
13941394
</div>

docs/QB.content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2813,7 +2813,7 @@ <h4 class="name" id=".upload">
28132813

28142814

28152815
<footer>
2816-
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu May 24 2018 15:18:04 GMT+0300 (FLE Daylight Time)
2816+
Documentation generated by <a target="_blank" href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> on Fri Sep 13 2019 12:47:51 GMT+0300 (Eastern European Summer Time)
28172817
</footer>
28182818
</div>
28192819
</div>

0 commit comments

Comments
 (0)