Skip to content

Commit 1597629

Browse files
committed
SDK version up
1 parent f6b81e9 commit 1597629

File tree

6 files changed

+30
-11
lines changed

6 files changed

+30
-11
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
22
=========
3+
## v3.0.30
4+
* Added `getPushTemplate()` and `setPushTemplate()`.
5+
* Added checking SDK's version using `SendBird.version`.
6+
* Now support connecting to custom host.
7+
* Added return value when call `cancelUploadingFileMessage()`.
8+
39
## v3.0.29
410
* Fix the bug that drops message events when sb.setErrorFirstCallback was set to True.
511

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ SendBird-SDK-JavaScript
2929
# [Documentation](https://docs.sendbird.com/javascript)
3030

3131

32-
## Upgrading to v3.0.29
32+
## Upgrading to v3.0.30
3333
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).
34-
* Fix the bug that drops message events when sb.setErrorFirstCallback was set to True.
34+
* Added `getPushTemplate()` and `setPushTemplate()`.
35+
* Added checking SDK's version using `SendBird.version`.
36+
* Now support connecting to custom host.
37+
* Added return value when call `cancelUploadingFileMessage()`.
3538

3639

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

SendBird.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Project: https://sendbird.com/
33

44
interface SendBirdFactory {
5+
version: number; // SendBird SDK version
6+
57
new(option: Object): SendBird_Instance;
68
}
79

@@ -11,7 +13,9 @@ interface SendBirdFactory {
1113
*/
1214
interface SendBird_Instance {
1315
connect(userId: string, callback?: Function): void;
16+
connect(userId: string, apiHost: string, wsHost: string, callback?: Function): void;
1417
connect(userId: string, accessToken: string, callback?: Function): void;
18+
connect(userId: string, accessToken: string, apiHost: string, wsHost: string, callback?: Function): void;
1519
disconnect(callback?: Function): void;
1620
// You can reinitate auto-reconnect manually.
1721
reconnect(): boolean;
@@ -20,6 +24,7 @@ interface SendBird_Instance {
2024
getApplicationId(): string;
2125

2226
updateCurrentUserInfo(nickname: string, profileImage: string, callback?: Function): void;
27+
updateCurrentUserInfo(nickname: string, profileImage: File, callback?: Function): void;
2328

2429
// Push token
2530
registerGCMPushTokenForCurrentUser(gcmRegToken: string, callback?: Function): void;
@@ -38,6 +43,9 @@ interface SendBird_Instance {
3843
setDoNotDisturb(doNotDisturbOn: boolean, startHour: number, startMin: number, endHour: number, endMin: number, timezone: string, callback?: Function): void;
3944
getDoNotDisturb(callback: Function): void;
4045

46+
setPushTemplate(templateName: string, callback?: Function): void;
47+
getPushTemplate(callback?: Function): void;
48+
4149
// Block / Unblock
4250
blockUser(userToBlock: User, callback?: Function): void;
4351
blockUserWithUserId(userToBlock: string, callback?: Function): void;
@@ -60,6 +68,8 @@ interface SendBird_Instance {
6068
removeAllConnectionHandlers(): void;
6169

6270
createUserListQuery(): UserListQuery;
71+
createUserListQuery(userIds: Array<string>): UserListQuery;
72+
6373
createBlockedUserListQuery(): UserListQuery;
6474

6575
// Background/Foreground Appstate for push notifications in React Native / Ionic
@@ -99,7 +109,7 @@ interface UserListQuery {
99109
limit: number;
100110
isLoading: boolean;
101111

102-
next(callback: Function): void;
112+
next(callback?: Function): void;
103113
}
104114

105115

@@ -207,7 +217,7 @@ interface BaseChannel {
207217
updateFileMessage(messageId: number, data: string, customType: string, callback: Function): void;
208218

209219
/* Cancel File Upload */
210-
cancelUploadingFileMessage(messageReqId: string, callback: Function): void;
220+
cancelUploadingFileMessage(messageReqId: string, callback: Function): boolean;
211221

212222
/* MetaCounter */
213223
createMetaCounters(metaCounterMap: Object, callback: Function): void;

SendBird.min.js

Lines changed: 5 additions & 5 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.29",
3+
"version": "3.0.30",
44
"authors": [
55
"SendBird <[email protected]>"
66
],

package.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.29",
3+
"version": "3.0.30",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)