Skip to content

Commit 3ac961e

Browse files
committed
Upadte to 3.0.11
1 parent e0066da commit 3ac961e

File tree

6 files changed

+31
-14
lines changed

6 files changed

+31
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
## v3.0.11
5+
### update
6+
* Fixed a Keep-Alive bug now and it should be much faster in React Native/NodeJS.
7+
* Now calling "connect()" multiple times in a row triggers "disconnect()" internally to avoid having multiple websocket connections
8+
* New License File
9+
410
## v3.0.10
511
### update
612
* Fixed a bug that increases unread message count when a user gets its own messages

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ SendBird-SDK-JavaScript
2121

2222
# [Sample](https://github.com/smilefam/SendBird-JavaScript)
2323

24-
* [Basic Sample](https://sample.sendbird.com) using [sendbird SDK](https://github.com/smilefam/SendBird-SDK-JavaScript). [download](https://github.com/smilefam/SendBird-JavaScript/tree/master/basic-sample)
24+
* [Basic Sample](https://sample.sendbird.com) using [Sendbird SDK](https://github.com/smilefam/SendBird-SDK-JavaScript). [download](https://github.com/smilefam/SendBird-JavaScript/tree/master/basic-sample)
2525

2626

2727
# [Documentation](https://docs.sendbird.com/javascript)
2828

2929

30-
## Upgrading to v3.0.10
30+
## Upgrading to v3.0.11
3131
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).
3232

33-
* Fixed a bug that increases unread message count when a user gets its own messages
34-
* Cleared out old ws object's event handlers after disconnect to prevent a user from getting messages from another user who logged in on the same device.
35-
33+
* Fixed a Keep-Alive bug and it should be much faster in React Native/NodeJS.
34+
* Now calling "connect()" multiple times in a row triggers "disconnect()" internally to avoid having multiple websocket connections
35+
* New License File
3636

3737

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

4040

4141
## License
42-
[Apache 2.0 license](https://github.com/smilefam/bower-SendBird/blob/master/LICENSE)
42+
[SendBird License](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/LICENSE.md)
4343

4444

SendBird.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface SendBirdFactory {
1212
interface SendBird_Instance {
1313
connect(userId: string, callback?: Function): void;
1414
connect(userId: string, accessToken: string, callback?: Function): void;
15+
disconnect(callback?: Function): void;
1516

1617
getConnectionState(): string;
1718
getApplicationId(): string;
@@ -27,6 +28,9 @@ interface SendBird_Instance {
2728
unregisterAPNSPushTokenForCurrentUser(apnsRegToken: string, callback?: Function): void;
2829
unregisterAPNSPushTokenAllForCurrentUser(callback: Function): void;
2930

31+
setDoNotDisturb(doNotDisturbOn: boolean, startHour: number, startMin: number, endHour: number, endMin: number, timezone: string, callback?: Function): void;
32+
getDoNotDisturb(callback: Function): void;
33+
3034
// Block / Unblock
3135
blockUser(userToBlock: User, callback?: Function): void;
3236
blockUserWithUserId(userToBlock: string, callback?: Function): void;
@@ -290,6 +294,7 @@ interface GroupChannel extends BaseChannel {
290294
endTyping(): void;
291295
isTyping(): boolean;
292296
getTypingMembers(): [number, User];
297+
getTotalUnreadMessageCount(callback: Function): void;
293298

294299
isDistinct: boolean;
295300
unreadMessageCount: number;
@@ -298,6 +303,11 @@ interface GroupChannel extends BaseChannel {
298303
memberCount: number;
299304

300305
createMyGroupChannelListQuery(): GroupChannelListQuery;
306+
307+
setPushPreference(pushOn: boolean, callback: Function): void;
308+
getPushPreference(callback: Function): void;
309+
310+
getReadStatus(): Object;
301311
}
302312

303313
declare var SendBird: SendBirdFactory;

SendBird.min.js

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

bower.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.10",
3+
"version": "3.0.11",
44
"authors": [
55
"SendBird <support@sendbird.com>"
66
],
@@ -15,7 +15,7 @@
1515
"chat",
1616
"js"
1717
],
18-
"license": "Apache 2.0",
18+
"license": "LICENSE.md",
1919
"ignore": [
2020
"package.json"
2121
]

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.10",
3+
"version": "3.0.11",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {
@@ -23,7 +23,7 @@
2323
"js"
2424
],
2525
"author": "SendBird <support@sendbird.com>",
26-
"license": "Apache 2.0",
26+
"license": "SEE LICENSE IN LICENSE.md",
2727
"bugs": {
2828
"url": "https://github.com/smilefam/SendBird-SDK-JavaScript/issues"
2929
},

0 commit comments

Comments
 (0)