Skip to content

Commit

Permalink
v3.0.151
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho committed May 28, 2021
1 parent 497f634 commit b31eb81
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v3.0.151(MAY 28, 2021)
- Added `MessageTypeFilter` in `BaseChannel`.
- Improved stability.

## v3.0.150(MAY 26, 2021)
- Added `joinedAt` in `GroupChannel`.
- Improved stability.
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,9 @@ The `sb.setErrorFirstCallback(false)` returns callbacks to their original parame

## Changelogs

## v3.0.150(MAY 26, 2021)
## v3.0.151(MAY 28, 2021)

If you want to check the record of other versions, go to [Change Log](https://github.com/sendbird/Sendbird-SDK-JavaScript/blob/master/CHANGELOG.md).

- Added `advancedQuery` and `targetFields` in `MessageSearchQuery`.
- Added `joinedAt` in `GroupChannel`.
- Improved stability.
- Added `MessageTypeFilter` in `BaseChannel`.
- Improved stability.
17 changes: 14 additions & 3 deletions SendBird.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Type Definitions for Sendbird SDK v3.0.150
* Type Definitions for Sendbird SDK v3.0.151
* homepage: https://sendbird.com/
* git: https://github.com/sendbird/Sendbird-SDK-JavaScript
*/
Expand Down Expand Up @@ -68,13 +68,23 @@ declare namespace SendBird {
NONE: 'none',
};

type MessageTypeFilter = {
ALL: '',
USER: 'MESG',
FILE: 'FILE',
ADMIN: 'ADMM'
};

interface DiscoveryObject {
friendDiscoveryKey: string;
friendName?: string;
}
interface SendBirdInstance {
User: UserStatic;
Member: MemberStatic;
BaseChannel: {
MessageTypeFilter: MessageTypeFilter;
};
OpenChannel: OpenChannelStatic;
GroupChannel: GroupChannelStatic;
UserMessage: UserMessageStatic;
Expand Down Expand Up @@ -720,6 +730,7 @@ declare namespace SendBird {
description: string;
};
type getMyMutedInfoHandler = (info: mutedInfo, error: SendBirdError) => void;

interface BaseChannel {
url: string;
name: string;
Expand Down Expand Up @@ -1490,7 +1501,7 @@ declare namespace SendBird {
isLoading: boolean;
limit: number;
reverse: boolean;
messageTypeFilter: 0 | 1 | 2 | 3; // 0: ALL, 1: USER, 2: FILE, 3: ADMIN
messageTypeFilter: 0 | 1 | 2 | 3 | '' | 'MESG' | 'FILE' | 'ADMM';
/**
* @deprecated since version v3.0.142, please use {@link customTypesFilter} instead
*/
Expand All @@ -1508,7 +1519,7 @@ declare namespace SendBird {
includeThreadInfo: boolean;
showSubchannelMessagesOnly: boolean;

load(limit: number, reverse: boolean, messageType?: number, callback?: messageListCallback): Array<UserMessage | FileMessage | AdminMessage>;
load(limit: number, reverse: boolean, messageType?: number | string, callback?: messageListCallback): Array<UserMessage | FileMessage | AdminMessage>;
load(callback?: messageListCallback): Array<UserMessage | FileMessage | AdminMessage>;
}

Expand Down
4 changes: 2 additions & 2 deletions SendBird.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.0.150",
"version": "3.0.151",
"authors": [
"Sendbird <[email protected]>"
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.0.150",
"version": "3.0.151",
"description": "Sendbird JavaScript SDK",
"main": "SendBird.min.js",
"dependencies": {
Expand Down Expand Up @@ -30,4 +30,4 @@
},
"homepage": "https://sendbird.com",
"typings": "SendBird.d.ts"
}
}

0 comments on commit b31eb81

Please sign in to comment.