Skip to content

Releases: ConnectyCube/use-chat

0.27.0

20 Aug 13:19
d855c3b

Choose a tag to compare

Chores

  • added new commands npm run version:major, npm run version:minor, and npm run version:patch to bump version in the package.json

Code Refactoring

  • the method sendMessage can add an extension object to a sending message as the third parameter. sendMessage: (body: string, dialog?: Dialogs.Dialog, extension?: { [key: string]: any }) => void;

Features

  • new method generateTempMessageId to create a custom/temporary identifier for a message
  • add addTempMessage and updateTempMessage methods to create and update a temporary custom message in chat messages

0.26.2

14 Jul 15:50
97b2cf6

Choose a tag to compare

Misc

  • Pings chat every 40 seconds for better connection management with enabled VPN
  • Updated processOnMessageSent function to improve handling of lost messages

Updated

0.26.1

18 Jun 13:36
edf30b1

Choose a tag to compare

Bug fixes

  • The totalMessagesReached state defines is determined correctly

0.26.0

18 Jun 12:44
258a07d

Choose a tag to compare

Updated

Misc

  • Added the terminate method to stop the chat connection, with the ability to reconnect
  • The "SASLError: not-authorized" error tries to disconnect or terminate the chat connection
  • Added the getNextDialogs method to fetch the next batch of dialogs
  • Implemented the totalDialogReached (boolean) state to indicate whether all dialogs have been fetched
  • Implemented the totalMessagesReached ({ [dialogId: string]: boolean }) state to indicate whether all messages for a dialog have been fetched

0.25.0

13 Jun 17:33
a048c26

Choose a tag to compare

Updated

0.24.0

13 Jun 14:48
6740d59

Choose a tag to compare

Features

  • Added method getNextMessages to get the next batch of messages for the dialog
  • Implemented new statuses "not-authorized" and "error" for chatStatus state

0.23.2

11 Jun 10:31
dab0f6e

Choose a tag to compare

Misc

0.23.1

29 May 10:15
daa7b72

Choose a tag to compare

Misc

  • Methods fetchUserById and getAndStoreUsers also update existed onlineUsers state
  • Private messages from offline (delayed) will be ignored. These messages will be available in processOnMessage's callback to process.

0.23.0

01 May 12:19
ce78695

Choose a tag to compare

Misc

  • Extended message statuses "wait", "sent", "read" and "lost"
  • Internal chat connection manager

Features

  • Implemented chatStatus state with "disconnected", "connecting" and "connected"
  • Implemented processOnMessageSent function to handle actions triggered by lost/sent message

0.22.0

29 Apr 07:36
131c9fc

Choose a tag to compare

Bug fixes

  • do not crash when stop typing on received message for non existent chat