2.5.5
New:
-
new callback
onKickOccupant(dialogId, initiatorUserId)
to handle a case where User2 joined chat dialog and User1 removed him from occupants; -
new callbacks
onJoinOccupant(dialogId, userId)
andonLeaveOccupant(dialogId, userId)
to handle group dialog changes; -
new task
npm run buildNotMinified
; -
Karma/Istanbul code coverage tools. To start use the following comand:
node node_modules/.bin/karma start karma.conf.js
. To see a report look at subdirectory coverage in the default location.
Warning! Before run you need to rebuild sdk withbuildNotMinified
task;
Updated:
- refactored API logs format;
Fixed:
- ability to use multiple QB instances;
- onMessageErrorListener does not work under (Node.js);
- QB.chat.privacylist.delete method does not work (Node.js);
- an issue with recursion when do QB.chat.disconnect inside QB.chat.connect's callback (Node.js);
- QB.users.resetPassword always returns an error;
- QB.chat.privacylist.update method does not work properly when change deny-> allow;
- methods to decline the use of active/privacy lists (QB.chat.privacylist.setAsDefault('', callback) and QB.chat.privacylist.setAsActive('', callback)) does not work properly. Also, now you can pass null instead of empty string '' to decline;
- QB.chat.privacylist.getNames method does not return anything if a user does not have any active/default lists;
- QB.chat.privacylist.getNames returns all names except active/default at names key under Node.js. Made it similar to browser env behaviour;
- QB.chat.muc.listOnlineUsers method not returns an array of integers instead of array of strings.
- Event handlers to be registered with Strophe multiple times ( thanks @ruffin-- );