Releases: ConnectyCube/use-chat
Releases · ConnectyCube/use-chat
0.27.0
Chores
- added new commands
npm run version:major,npm run version:minor, andnpm run version:patchto bump version in thepackage.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
generateTempMessageIdto create a custom/temporary identifier for a message - add
addTempMessageandupdateTempMessagemethods to create and update a temporary custom message in chat messages
0.26.2
Misc
- Pings chat every 40 seconds for better connection management with enabled VPN
- Updated
processOnMessageSentfunction to improve handling of lost messages
Updated
- Uses
[email protected]
0.26.1
Bug fixes
- The
totalMessagesReachedstate defines is determined correctly
0.26.0
Updated
- Uses
[email protected]
Misc
- Added the
terminatemethod 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
getNextDialogsmethod 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
Updated
- uses
[email protected]
0.24.0
Features
- Added method
getNextMessagesto get the next batch of messages for the dialog - Implemented new statuses "not-authorized" and "error" for
chatStatusstate
0.23.2
Misc
- use
[email protected] - types
0.23.1
Misc
- Methods
fetchUserByIdandgetAndStoreUsersalso update existedonlineUsersstate - Private messages from offline (delayed) will be ignored. These messages will be available in
processOnMessage's callback to process.
0.23.0
Misc
- Extended message statuses "wait", "sent", "read" and "lost"
- Internal chat connection manager
Features
- Implemented
chatStatusstate with "disconnected", "connecting" and "connected" - Implemented
processOnMessageSentfunction to handle actions triggered by lost/sent message
0.22.0
Bug fixes
- do not crash when stop typing on received message for non existent chat