Releases: cometchat/chat-sdk-javascript
Releases · cometchat/chat-sdk-javascript
v4.0.10
New
- None
Enhancements
- None
Fixes
- Fixed an issue where the timer for marking a call as unanswered would continue running even after the call was accepted, causing problems when the initiator attempted to end the call.
v4.0.9
New
- Added "onMessagesDeliveredToAll" and "onMessagesReadByAll" listeners to notify message sender when group messages are delivered or read by everyone in the group.
Fixes
- Fixed issue with tags not being passed properly in media message.
v4.0.8
New
- The following new methods have been introduced in the
CometChatNotificationsclass:updateTimezone: This method updates the timezone for receiving Enhanced Email and Enhanced SMS notifications correctly.getTimezone: This method fetches the timezone set for a user.
- Added new class
NotificationPreferencesinCometChatNotifications
Enhancements
- The following methods in the
ConversationsRequestBuilderclass have been deprecated:setIncludeBlockedUsersis now deprecated. Please useincludeBlockedUsersas an alternative.setWithBlockedInfois now deprecated. Please usewithBlockedInfoas an alternative.
- The following methods in the
CometChatNotificationsclass have been deprecated:fetchPushPreferencesis now deprecated. Please usefetchPreferencesas an alternative.updatePushPreferencesis now deprecated. Please useupdatePreferencesas an alternative.resetPushPreferencesis now deprecated. Please useresetPreferencesas an alternative.
- The following class in the
CometChatNotificationshas been deprecated:PushPreferencesis now deprecated. Please useNotificationPreferencesas an alternative.
Fixes
- Added method
clearActiveCallto clear the active call.
v4.0.7
New
- Add new methods in Conversations Request Builder “setIncludeBlockedUsers”, “setWithBlockedInfo”
- Added getter methods in all the Request classes
- Add setter & getter method for GUID in BannedMembersRequestBuilder & GroupMembersRequestBuilder
Fixes
- Resolved the issue with the markAsUnread method. The bug involved one-to-one conversations, where the incorrect receiverId was being sent while marking a message as unread in the SDK method.
v4.0.6
New:
- Added a method named getConversationUpdateSettings which returns the settings saved in Dashboard.
Fixes:
- Fixed error handling in getSender() and getReceiver() methods in Message Models
v4.0.5
Enhancement:
- Added a new method isBannedFromGroup to the Group model class to indicate whether the user is banned from the group or not.
- Introduced three new methods in CustomMessage class as follows:
shouldSendNotification(val: boolean): It accepts boolean value, if you pass true it will trigger a notification for the custom message.setConversationText(text: string): It accepts a string which can be used to display the last message text in the conversation list.shouldUpdateConversation(val: boolean): It accepts boolean value, if you pass true the message will appear as the last message in the Conversation and will update and reorder the conversation list, placing the conversation at the top.
v4.0.4
New
- Introduced
ReactionandReactionEventclasses to enhance the functionality of message reactions introduced in v4.0.3. - Added
ReactionsRequestclass as a replacement forReactionRequestclass introduced in v4.0.3. - Added
ReactionsRequestBuilderclass as a replacement forReactionRequestBuilderclass introduced in v4.0.3. - Introduced Enhanced Push Notification Feature.
- Added
PushPreferences, GroupPreferences,MutePreferences,MutedConversation,UnmutedConversation&DaySchedule` classes - Added method
registerPushTokenmethod to register push token. - Added method
unregisterPushTokenmethod to unregister push token. - Added method
muteConversationsmethod to mute push notifications of conversations. - Added method
unmuteConversationsmethod to unmute push notifications of conversations. - Added method
fetchPushPreferences,updatePushPreferences&resetPushPreferencesto fetch, update & reset push preferences.
- Added
Enhancements
- The real-time listeners
onMessageReactionAddedandonMessageReactionRemovedhave been improved to return an object ofReactionEventclass, providing a more robust event model. ReactionsRequestBuilderhas been enhanced to return a list ofReactionobjects, offering a more intuitive and consistent API.
Removals
- Removed the
MessageReactionclass introduced in v4.0.3, transitioning its responsibilities to the newReactionandReactionEventclasses. - Removed
myMentionsOnlymethod fromMessagesRequestBuilderintroduced in v4.0.2.
Fixes
- Addressed an issue that led to unnecessary warnings being emitted from the Chat SDK, ensuring a cleaner console output.
- Resolved a sorting problem that resulted in incorrect message order when the token based file access was enabled, improving message sequence integrity.
v4.0.4-beta1
New
- Introduced
ReactionandReactionEventclasses to enhance the functionality of message reactions introduced in v4.0.3. - Added
ReactionsRequestclass as a replacement forReactionRequestclass introduced in v4.0.3. - Added
ReactionsRequestBuilderclass as a replacement forReactionRequestBuilderclass introduced in v4.0.3.
Enhancements
- The real-time listeners
onMessageReactionAddedandonMessageReactionRemovedhave been improved to return an object ofReactionEventclass, providing a more robust event model. ReactionsRequestBuilderhas been enhanced to return a list ofReactionobjects, offering a more intuitive and consistent API.
Removals
- Removed the
MessageReactionclass introduced in v4.0.3, transitioning its responsibilities to the newReactionandReactionEventclasses. - Removed
myMentionsOnlymethod fromMessagesRequestBuilderintroduced in v4.0.2.
Fixes
- Addressed an issue that led to unnecessary warnings being emitted from the Chat SDK, ensuring a cleaner console output.
- Resolved a sorting problem that resulted in incorrect message order when the token based file access was enabled, improving message sequence integrity.
v4.0.3
- Added support to react on Text, Media, and Custom Messages
- Added a new field unreadMentionsCount field in Conversation Object
- Added a new field lastReadMessageId field in Conversation Object
v4.0.2
- New Added support to mention a user in Text & Media Message.
- New Added support to send interactive messages like forms, card, etc.
- New Added a method to mark a message as unread.