Skip to content

Commit

Permalink
v4.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho committed Feb 15, 2023
1 parent 9c7626d commit cf79301
Show file tree
Hide file tree
Showing 16 changed files with 61 additions and 28 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@

# Changelog

## v4.3.1 (Feb 15, 2023)
### **Improvements**
- Fixed a bug where `poll.votedOptionIds` is not updated upon calling `poll.applyPollUpdateEvent(pollUpdateEvent)`
- Fixed a bug where auto-resending file message fails occasionally
- `MessageCollectionEventHandler.onMessagesDeleted`
- Added a new parameter `messages: BaseMessage[]`
- Deprecated `messageIds: number[]`
- `onMessagesDeleted` callback now returns either unsent or sent messages through a new parameter `messages: BaseMessage[]`, which you can use to remove pending messages
- Fixed a bug where `MessageRequestHandler.onPending` is called when pending message is marked for auto-resend
- Fixed a bug where `MessageCollection.hasNext` remains true after `MessageCollection.initialize()` is called with `startingPoint` as now
- Fixed a bug where SDK calls `MessageCollectionEventHandler` when handler has not been set
- Fixed a bug where `MessageCollectionEventHandler.onMessagesUpdated` is called on update of `GroupChannel`s `getUnreadMemberCount` and `getUndeliveredMemberCount`
- Deprecated `EVENT_MESSAGE_READ` and `EVENT_MESSAGE_DELIVERED` in `MessageEventSource`
- Exported `BaseMessageCreateParams` and `BaseMessageUpdateParams`
- Improved stability

## v4.3.0 (Feb 01, 2023)
### **Features**
#### **Participant class in Open Channel**
Expand Down
15 changes: 0 additions & 15 deletions __bundle-2a729281.js

This file was deleted.

15 changes: 15 additions & 0 deletions __bundle-7175498d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions __bundle-c01340eb.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __bundle-43418632.js → __bundle-c20e72f4.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion __bundle-a9c3db53.js → __bundle-d8d501e8.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion __bundle-ee341ede.js

This file was deleted.

2 changes: 1 addition & 1 deletion groupChannel.js

Large diffs are not rendered by default.

21 changes: 18 additions & 3 deletions lib/__definition.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export declare class BaseMessage {
applyParentMessage(parentMessage: BaseMessage): boolean;
}

declare interface BaseMessageCreateParams {
export declare interface BaseMessageCreateParams {
data?: string;
customType?: string;
mentionType?: MentionType;
Expand All @@ -182,7 +182,7 @@ declare interface BaseMessageCreateParams {
isPinnedMessage?: boolean;
}

declare interface BaseMessageUpdateParams {
export declare interface BaseMessageUpdateParams {
data?: string;
customType?: string;
mentionType?: MentionType;
Expand Down Expand Up @@ -645,7 +645,16 @@ export declare interface MessageCollectionEventHandler {
onChannelDeleted: (context: GroupChannelEventContext, channelUrl: string) => void;
onMessagesAdded: (context: MessageEventContext, channel: GroupChannel, messages: BaseMessage[]) => void;
onMessagesUpdated: (context: MessageEventContext, channel: GroupChannel, messages: BaseMessage[]) => void;
onMessagesDeleted: (context: MessageEventContext, channel: GroupChannel, messageIds: number[]) => void;
/**
*
* @param messageIds Deprecated since v4.3.1. Use messages instead.
*/
onMessagesDeleted: (
context: MessageEventContext,
channel: GroupChannel,
messageIds: number[],
messages: BaseMessage[],
) => void;
onHugeGapDetected: () => void;
}

Expand Down Expand Up @@ -678,7 +687,13 @@ export declare enum MessageEventSource {
EVENT_MESSAGE_RECEIVED = 'EVENT_MESSAGE_RECEIVED',
EVENT_MESSAGE_UPDATED = 'EVENT_MESSAGE_UPDATED',
EVENT_MESSAGE_DELETED = 'EVENT_MESSAGE_DELETED',
/**
* @deprecated since v4.3.1
*/
EVENT_MESSAGE_READ = 'EVENT_MESSAGE_READ',
/**
* @deprecated since v4.3.1
*/
EVENT_MESSAGE_DELIVERED = 'EVENT_MESSAGE_DELIVERED',
EVENT_MESSAGE_REACTION_UPDATED = 'EVENT_MESSAGE_REACTION_UPDATED',
EVENT_MESSAGE_THREADINFO_UPDATED = 'EVENT_MESSAGE_THREADINFO_UPDATED',
Expand Down
2 changes: 2 additions & 0 deletions message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ export {
AdminMessage,
AppleCriticalAlertOptions,
BaseMessage,
BaseMessageCreateParams,
BaseMessageUpdateParams,
FailedMessageHandler,
FileInfo,
FileMessage,
Expand Down
2 changes: 1 addition & 1 deletion message.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openChannel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.3.0",
"version": "4.3.1",
"description": "Sendbird SDK for JavaScript",
"name": "@sendbird/chat",
"author": "Sendbird <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion poll.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sendbird.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sendbird.min.js

Large diffs are not rendered by default.

0 comments on commit cf79301

Please sign in to comment.