Skip to content

Commit

Permalink
v4.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho committed Aug 9, 2023
1 parent c86b9ef commit 5b11d20
Show file tree
Hide file tree
Showing 39 changed files with 121 additions and 40 deletions.
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,57 @@
# Changelog

## v4.9.8 (Aug 9, 2023)
### **Features**
- Added `BaseChannel.copyMessage()` that supports user, file, and multiple files message
- Added `BaseChannel.resendMessage()` that supports user, file, and multiple files message

```typescript
// Copy a succeeded multiple files message.
channelA.copyMessage(channelB, multipleFilesMessageToCopy)
.onPending((message: MultipleFilesMessage) => {
// ...
})
.onFailed((err: SendbirdError, message: MultipleFilesMessage) => {
// ...
})
.onSucceeded((message: MultipleFilesMessage) => {
// ...
});

// Resend a failed or canceled multiple files message.
channel.resendMessage(failedOrCanceledMultipleFilesMessage)
.onPending((message: MultipleFilesMessage) => {
// ...
})
.onFailed((err: SendbirdError, message: MultipleFilesMessage) => {
// ...
})
.onSucceeded((message: MultipleFilesMessage) => {
// ...
})
.onFileUploaded((
requestId: string,
index: number,
uploadableFileInfo: UploadableFileInfo,
err?: Error
) => {
// ...
});
```

### **Deprecated**
- Deprecated `BaseChannel.copyUserMessage()`
- Deprecated `BaseChannel.copyFileMessage()`
- Deprecated `BaseChannel.resendUserMessage()`
- Deprecated `BaseChannel.resendFileMessage()`

### **Improvements**
- Changed `MessageHandler`, `FailedMessageHandler`, `MessageRequestHandler`, and `MultipleFilesMessageRequestHandler` to have generic message type
- Fixed the bug where reply messages were not being automatically resent
- Fixed the bug where initializing the message collection without result handler throws an error
- Fixed the bug where message collection updating the left group channel
- Added `createdAfter` and `createdBefore` filters in `GroupChannelListQuery`

## v4.9.7 (Aug 3, 2023)
### **Improvements**
- Fixed a bug where `HugeGabCheck` in `MessageCollection` has missed some filters
Expand Down
2 changes: 1 addition & 1 deletion cjs/feedChannel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cjs/groupChannel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cjs/index.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cjs/lib/__bundle-218bea1d.js

This file was deleted.

2 changes: 2 additions & 0 deletions cjs/lib/__bundle-26b86f4c.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cjs/lib/__bundle-4bc3a029.js

This file was deleted.

1 change: 0 additions & 1 deletion cjs/lib/__bundle-617167af.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
"use strict";var s=require("./__bundle-c176c59f.js");class t extends s.User{constructor(s,t){var e;super(s,t),this.isMuted=!1,this.isMuted=null!==(e=t.is_muted)&&void 0!==e&&e}}exports.Participant=t;
"use strict";var s=require("./__bundle-26b86f4c.js");class t extends s.User{constructor(s,t){var e;super(s,t),this.isMuted=!1,this.isMuted=null!==(e=t.is_muted)&&void 0!==e&&e}}exports.Participant=t;
1 change: 1 addition & 0 deletions cjs/lib/__bundle-82ee6f93.js

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

Loading

0 comments on commit 5b11d20

Please sign in to comment.