Skip to content

Releases: ConnectyCube/use-chat

0.20.0

03 Apr 14:43
5448a36
Compare
Choose a tag to compare

Updated

  • Refactored typing statuses, so the typingStatus state is an array with currently typing users for each dialogId as key

0.19.0

01 Apr 14:31
1df4bfb
Compare
Choose a tag to compare

Features

  • Implemented getOnlineUsersCount function to get the total count of online users
  • onlineUsers and onlineUsersCount properties to get the state of online users
  • Implemented subscribeToUserLastActivityStatus(userId) and unsubscribeFromUserLastActivityStatus(userId) functions to start/stop listening to user last activity status
  • lastActivity property to get the state users last activity

Updated

  • The function listOnlineUsers has been renamed to listOnlineUsersWithParams to reflect pagination parameters, such as limit and offset
  • The function listOnlineUsers can now handle multiple requests under the hood to retrieve all online users

0.18.0

20 Mar 18:15
80b0ffa
Compare
Choose a tag to compare

Bug fixes

  • users, dialogs and messages state management were refactored to prevent duplicates.

Misc

  • Added support for node 22;
  • Upgraded connectycube >=4.2.2 to use import types and enums from "connectycube/types";

0.17.0

14 Mar 14:43
6c30803
Compare
Choose a tag to compare

Updates

  • Block users API was optimized.

0.16.0

03 Mar 08:37
aad2332
Compare
Choose a tag to compare

Features

  • Implemented processOnMessageError function to process needed actions on error message;
  • Allow to pass photo and extensions in createChat and createGroupChat.

Bug fixes

  • Block users API.

0.15.0

26 Feb 15:17
50e1c72
Compare
Choose a tag to compare

Features

  • Implemented Block users API

0.14.4

22 Feb 11:29
a1f76f0
Compare
Choose a tag to compare

Bug fixes

  • listOnlineUsers to store retrieved users in users

0.14.3

21 Feb 11:57
c3f7d10
Compare
Choose a tag to compare

Bug fixes

  • getMessages to handle properly non existent chat case

Misc

  • Run npm run version to fetch the package.json version to the latest one from CHANGELOG.md;

0.14.2

18 Feb 15:35
abe936e
Compare
Choose a tag to compare

Bug fixes

  • Fixes for automated releases.

0.14.1

18 Feb 14:55
49fabc2
Compare
Choose a tag to compare

Bug fixes

  • Attachment type is undefined when using sendMessageWithAttachment.