Skip to content

Conversation

@Vladlukhanin
Copy link
Contributor

@Vladlukhanin Vladlukhanin commented Oct 20, 2017

Added:

QB.chat.getLastUserActivity(userId) - to send query; QB.chat.onLastUserActivityListener(userId, seconds) - get last user activity;
  • Support Safari 11 (experimental);

Updated:

  • API Reference:
    • QB.content, QB.data, QB.user, QB.pushnotifications.
  • possibilty to get user by phone number;

Removed:

  • QB.chat.privacyList.setAsActive();
  • QB.content.taggetForCurrentUser - unnecessary API Call;

Samples:

  • WebRTC sample - Hide record button in if MediaRecorder is unavailable;

How should this be manually tested?
Use Jasmine, start ./spec/SpecRunner.html in browser

Does the documentation need an update?
Yes, generate JSDOC before release

dimaspirit and others added 30 commits November 16, 2016 19:30
* Fixed bug (remove QB.Recorder) * remove QB.Recorder * upd recorder * upd npm install rimraf -g
Add a few section of docs (QB.chat.*)
* generate new docs
# Conflicts: #	docs/QB.chat.html #	docs/QB.chat.muc.html #	docs/QB.chat.roster.html #	docs/QB.html #	docs/global.html #	docs/index.html #	package.json #	quickblox.min.js #	src/qbConfig.js
* in develop. * done * remove in develop values * review
* qbLocation depcated * session. filter/snapshot removed
Vladlukhanin and others added 14 commits August 21, 2017 15:16
* Fixed some text in Data Sample; * Fixed XML stanza for send message with attachments in nodejs environment; * Fixed file's size for response from QB.content.createAndUpload(file, callback); * Added ignores for npm (.npmignore file).
* QBWEBSDK-559 * QBWEBSDK-574 * QBWEBSDK-569 * QBWEBSDK-569 (updated)
* API Reference (Added description for user, content, data and pushnotifications modules) * cleanup * Updated QB.content.upload description
…blox-javascript-sdk into develop # Conflicts: #	docs/QB.chat.dialog.html #	docs/QB.chat.helpers.html #	docs/QB.chat.html #	docs/QB.chat.message.html #	docs/QB.chat.muc.html #	docs/QB.chat.privacylist.html #	docs/QB.chat.roster.html #	docs/QB.html #	docs/global.html #	docs/index.html #	package-lock.json #	quickblox.min.js #	src/modules/qbContent.js #	src/qbConfig.js
@Vladlukhanin Vladlukhanin changed the title Develop Sprint 12 Oct 20, 2017
Vladlukhanin and others added 5 commits October 25, 2017 16:52
* Added last user activity query. * rebuild after merge * cleanup * rebuild * updated API Reference Docs, Removed method setAsActive in privacyList module, updated tests * rebuild
AddressBook.prototype = {
/**
* The method is used to create, update and delete contacts in address book.<br />
* If contacts doesn't exist in address book then it will be created. If contacts exists then it will be updated.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If contacts -> If contact

* @memberof QB.addressbook
* @param {string|function} udidOrCallback - You could pass udid of address book or
* callback function if you want to get contacts from global address book.
* @param {function} [callback] - Callback function is uses as 2nd parameter if you pass udid as 1st parameters.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is uses -> is used

* Retrive all user that has phone number from your address book.
* The methods accepts 1 or 2 parameters.
* @memberof QB.addressbook
* @param {boolean|function} udidOrCallback - You can pass isCompact parameter or callback object. If isCompact is passed then only user's id and phone fields will be returned from server. Otherwise - all standard user's parameters will be returned.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user's parameters -> user's fields

* The methods accepts 1 or 2 parameters.
* @memberof QB.addressbook
* @param {boolean|function} udidOrCallback - You can pass isCompact parameter or callback object. If isCompact is passed then only user's id and phone fields will be returned from server. Otherwise - all standard user's parameters will be returned.
* @param {function} [callback] - Callback function is uses as 2nd parameter if you pass `isCompact` as 1st parameters.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is uses -> is used
as 1st parameters. -> as 1st parameter.

},

/**
* Retrive all user that has phone number from your address book.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retrive all user that has phone number from your address book. -> Retrieve QuickBlox users that have phone numbers from your address book.

@soulfly
Copy link
Contributor

soulfly commented Nov 7, 2017

Just a quick question:

Why you decided to have a separate callback for Last Activity instead of the following? :

QB.chat.getLastUserActivity(userId, function(seconds, error){ }); 
@Vladlukhanin
Copy link
Contributor Author

"Why you decided to have a separate callback for Last Activity instead of the following?"

To keep one-sided, because the whole chat is working on listeners.

@dimaspirit dimaspirit merged commit d883d06 into gh-pages Nov 9, 2017
@Vladlukhanin Vladlukhanin deleted the develop branch February 13, 2018 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

6 participants