Skip to content

Commit a018f3b

Browse files
committed
v3.0.84
1 parent 2f06488 commit a018f3b

File tree

6 files changed

+42
-18
lines changed

6 files changed

+42
-18
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Changelog
2-
=========
2+
=========
3+
4+
## v3.0.84(OCT 26, 2018)
5+
* Added `getMyMutedInfo()` in `BaseChannel`
6+
* Added `muteUser(user, seconds, description, callback)` and `muteUserWithUserId(userId, seconds, description, callback)` in `BaseChannel`
7+
* Added `metadata_value_alphabetical` order in `GroupChannelListQuery` and `PublicGroupChannelListQuery`
8+
* Added `metadataOrderKeyFilter` in `GroupChannelListQuery` and `PublicGroupChannelListQuery`
9+
* Minor bug fixed
310

411
## v3.0.83(OCT 18, 2018)
512
* Added `getLastConnectedAt()` in `SendBird` to get currentUser's last connection timestamp.

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ For more information about `SyncManager`, please refer to [SyncManager README](h
4949

5050
# [Documentation](https://docs.sendbird.com/javascript)
5151

52-
## v3.0.83(OCT 18, 2018)
52+
## v3.0.84(OCT 26, 2018)
5353
If you want to check the record of other version, go to [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
54-
* Added `getLastConnectedAt()` in `SendBird` to get currentUser's last connection timestamp.
55-
* Improved `sendFileMessage()` in `BaseChannel`. From now, message's order is guaranteed regardless of the file size uploaded.
56-
* Improved stability.
57-
* Minor bug fixed.
54+
* Added `getMyMutedInfo()` in `BaseChannel`
55+
* Added `muteUser(user, seconds, description, callback)` and `muteUserWithUserId(userId, seconds, description, callback)` in `BaseChannel`
56+
* Added `metadata_value_alphabetical` order in `GroupChannelListQuery` and `PublicGroupChannelListQuery`
57+
* Added `metadataOrderKeyFilter` in `GroupChannelListQuery` and `PublicGroupChannelListQuery`
58+
* Minor bug fixed
5859

5960

6061
## [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)

SendBird.d.ts

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for SendBird SDK v3.0.83
2+
* Type Definitions for SendBird SDK v3.0.84
33
* homepage: https://sendbird.com/
44
* git: https://github.com/smilefam/SendBird-SDK-JavaScript
55
*/
@@ -365,6 +365,14 @@ declare namespace SendBird {
365365
token: string;
366366
};
367367
type getMessageChangeLogsByTokenHandler = (data: messageChangeLogs, error: SendBirdError) => void;
368+
type mutedInfo = {
369+
isMuted: boolean;
370+
startAt: number;
371+
endAt: number;
372+
remainingDuration: number;
373+
description: string;
374+
};
375+
type getMyMutedInfoHandler = (info: mutedInfo, error: SendBirdError) => void;
368376
interface BaseChannel {
369377
url: string;
370378
name: string;
@@ -381,6 +389,7 @@ declare namespace SendBird {
381389

382390
getMessageChangeLogsByToken(callback: getMessageChangeLogsByTokenHandler): void;
383391
getMessageChangeLogsByToken(token: string, callback: getMessageChangeLogsByTokenHandler): void;
392+
getMyMutedInfo(callback: getMyMutedInfoHandler): void;
384393

385394
createOperatorListQuery(): OperatorListQuery;
386395

@@ -792,7 +801,9 @@ declare namespace SendBird {
792801
unbanUserWithUserId(userId: string, callback: commonCallback): void;
793802

794803
muteUser(user: User, callback: commonCallback): void;
804+
muteUser(user: User, seconds: number, description: string, callback: commonCallback): void;
795805
muteUserWithUserId(userId: string, callback: commonCallback): void;
806+
muteUserWithUserId(userId: string, seconds: number, description: string, callback: commonCallback): void;
796807
unmuteUser(user: User, callback: commonCallback): void;
797808
unmuteUserWithUserId(userId: string, callback: commonCallback): void;
798809

@@ -975,7 +986,9 @@ declare namespace SendBird {
975986
unbanUserWithUserId(userId: string, callback: commonCallback): void;
976987

977988
muteUser(user: User, callback: commonCallback): void;
989+
muteUser(user: User, seconds: number, description: string, callback: commonCallback): void;
978990
muteUserWithUserId(userId: string, callback: commonCallback): void;
991+
muteUserWithUserId(userId: string, seconds: number, description: string, callback: commonCallback): void;
979992
unmuteUser(user: User, callback: commonCallback): void;
980993
unmuteUserWithUserId(userId: string, callback: commonCallback): void;
981994

@@ -1070,7 +1083,7 @@ declare namespace SendBird {
10701083
hasNext: boolean;
10711084
isLoading: boolean;
10721085
includeEmpty: boolean;
1073-
order: 'latest_last_message' | 'chronological' | 'channel_name_alphabetical';
1086+
order: 'latest_last_message' | 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical';
10741087
userIdsFilter: Array<string>; // DEPRECATED
10751088
userIdsFilterExactMatch: boolean; // DEPRECATED
10761089
queryType: 'AND' | 'OR'; // DEPRECATED
@@ -1085,6 +1098,7 @@ declare namespace SendBird {
10851098
channelUrlsFilter: Array<string>;
10861099
superChannelFilter: 'all' | 'super' | 'nonsuper';
10871100
publicChannelFilter: 'all' | 'public' | 'private';
1101+
metadataOrderKeyFilter: string;
10881102

10891103
next(callback: groupChannelListQueryCallback): void;
10901104
}
@@ -1094,13 +1108,14 @@ declare namespace SendBird {
10941108
hasNext: boolean;
10951109
isLoading: boolean;
10961110
includeEmpty: boolean;
1097-
order: 'chronological' | 'channel_name_alphabetical';
1111+
order: 'chronological' | 'channel_name_alphabetical' | 'metadata_value_alphabetical';
10981112
channelNameContainsFilter: string;
10991113
channelUrlsFilter: Array<string>;
11001114
customTypesFilter: Array<string>;
11011115
customTypeStartsWithFilter: string;
11021116
superChannelFilter: 'all' | 'super' | 'nonsuper';
11031117
membershipFilter: 'all' | 'joined';
1118+
metadataOrderKeyFilter: string;
11041119
next(callback: groupChannelListQueryCallback): void;
11051120
}
11061121
}

SendBird.min.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.83",
3+
"version": "3.0.84",
44
"authors": ["SendBird <[email protected]>"],
55
"homepage": "https://github.com/smilefam/SendBird-SDK-JavaScript",
66
"description": "SendBird JavaScript SDK",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.83",
3+
"version": "3.0.84",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {
77
"ws": "6.0.0",
8+
"xhr2": "^0.1.4",
89
"agentkeepalive": "2.2.0"
910
},
1011
"scripts": {

0 commit comments

Comments
 (0)