Skip to content

Commit db24c7e

Browse files
committed
v3.0.18 release
1 parent 3febe20 commit db24c7e

File tree

6 files changed

+34
-13
lines changed

6 files changed

+34
-13
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
Changelog
22
=========
3+
## v3.0.18
4+
### update
5+
* Added "getMessages" series of methods with timestamp and messageId filter.
6+
* Fixed a callback handling bug.
7+
38
## v3.0.17
49
### update
510
* Finally push notifications feature is officially supported in V3 JS SDK.
611
* Added "setBackgroundState()" and "setForegroundState()".
712
* Added "messageType" filter to PreviousMessageQueryList.
813

9-
1014
## v3.0.16
1115
### update
1216
* InItial connection speed has been improved a lot!.

README.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ SendBird-SDK-JavaScript
2727
# [Documentation](https://docs.sendbird.com/javascript)
2828

2929

30-
## Upgrading to v3.0.17
30+
## Upgrading to v3.0.18
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).
32-
* Finally push notifications feature is officially supported in V3 JS SDK.
33-
* Added "setBackgroundState()" and "setForegroundState()".
34-
* Added "messageType" filter to PreviousMessageQueryList.
32+
* Added "getMessages" series of methods with timestamp and messageId filter.
33+
* Fixed a callback handling bug.
3534

3635

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

SendBird.d.ts

+19-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ interface SendBird_Instance {
5656
createUserListQuery(): UserListQuery;
5757
createBlockedUserListQuery(): UserListQuery;
5858

59+
// Background/Foreground Appstate for push notifications in React Native / Ionic
60+
setBackgroundState(): void;
61+
setForegroundState(): void;
62+
5963
currentUser: User;
6064
GroupChannel: GroupChannel;
6165
OpenChannel: OpenChannel;
@@ -105,6 +109,7 @@ interface BaseMessage {
105109
createdAt: number;
106110
channelType: string;
107111
messageType: string;
112+
customType: string;
108113
}
109114

110115
interface AdminMessage extends BaseMessage {
@@ -154,6 +159,7 @@ interface BaseChannel {
154159
coverUrl: string;
155160
createdAt: number;
156161
data: string;
162+
customType: string;
157163

158164
createPreviousMessageListQuery() : PreviousMessageListQuery;
159165
createMessageListQuery(): MessageListQuery;
@@ -189,6 +195,15 @@ interface BaseChannel {
189195
deleteAllMetaData(callback: Function): void;
190196

191197
deleteMessage(message: FileMessage|UserMessage, callback: Function): void;
198+
199+
/* GetMessages */
200+
getNextMessagesByTimestamp(ts: number, isInclusive: boolean, nextResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
201+
getPreviousMessagesByTimestamp(ts: number, isInclusive: boolean, prevtResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
202+
getPreviousAndNextMessagesByTimestamp(ts: number, prevtResultSize: number, nextResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
203+
getNextMessagesByID(messageId: number, isInclusive: boolean, nextResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
204+
getPreviousMessagesByID(messageId: number, isInclusive: boolean, prevtResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
205+
getPreviousAndNextMessagesByID(messageId: number, prevtResultSize: number, nextResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
206+
192207
}
193208

194209
interface ChannelHandlerFactory {
@@ -197,7 +212,7 @@ interface ChannelHandlerFactory {
197212

198213
interface ChannelHandler_Instance {
199214
onMessageReceived(channel: GroupChannel|OpenChannel, message: AdminMessage|UserMessage): void;
200-
onMessageDeleted(channel: GroupChannel, messageId: string): void;
215+
onMessageDeleted(channel: GroupChannel, messageId: number): void;
201216
onReadReceiptUpdated(channel: GroupChannel): void;
202217
onTypingStatusUpdated(channel: GroupChannel): void;
203218
onTypingStatusUpdated(channel: GroupChannel): void;
@@ -224,6 +239,7 @@ interface OpenChannel extends BaseChannel {
224239
createChannel(callback: Function): void;
225240
createChannel(name: string, coverUrl: string, data: any, callback: Function): void;
226241
createChannel(name: string, coverUrl: string, data: any, operatorUserIds: any, callback: Function): void;
242+
createChannel(name: string, coverUrl: string, data: any, operatorUserIds: any, customType: Function, callback: Function): void;
227243

228244
enter(callback: Function): void;
229245
exit(callback: Function): void;
@@ -283,7 +299,9 @@ interface GroupChannel extends BaseChannel {
283299
createChannel(users: [User], isDistinct: boolean, callback: Function): void;
284300
createChannel(users: [User], isDistinct: boolean, callback: Function): void;
285301
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverUrl: string, data: any, callback: Function): void;
302+
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverUrl: string, data: any, customType: string, callback: Function): void;
286303
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverImageFile: Object, data: any, callback: Function): void;
304+
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverImageFile: Object, data: any, customType: string, callback: Function): void;
287305

288306
getChannel(channelUrl: string, callback: Function): void;
289307

SendBird.min.js

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.17",
3+
"version": "3.0.18",
44
"authors": [
55
"SendBird <[email protected]>"
66
],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird",
3-
"version": "3.0.17",
3+
"version": "3.0.18",
44
"description": "SendBird JavaScript SDK",
55
"main": "SendBird.min.js",
66
"dependencies": {

0 commit comments

Comments
 (0)