Skip to content

Commit 7f4c9ad

Browse files
author
James.kim
committed
SDK version up
1 parent a0f1f1a commit 7f4c9ad

File tree

6 files changed

+50
-25
lines changed

6 files changed

+50
-25
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
22
=========
3+
## v3.0.27
4+
* Added updateUserMessage function and updateFileMessage function.
5+
* Added onMessageUpdated function in ChannelHandler.
6+
* now can confirm file upload progress by using progressHandler function if send param when sendFileMessage function call.
7+
* Added cancelUploadingFileMessage function.
8+
39
## v3.0.26
410
* Added getTotalUnreadChannelCount
511
* Now markAsRead doesn't have any delays

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,21 @@ 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/web-sample)
25+
* [Widget Sample](https://sample.sendbird.com/widget) using [Sendbird SDK](https://github.com/smilefam/SendBird-SDK-JavaScript). [download](https://github.com/smilefam/SendBird-JavaScript/tree/master/web-widget)
26+
* [LiveChat Sample](https://sample.sendbird.com/livechat) using [Sendbird SDK](https://github.com/smilefam/SendBird-SDK-JavaScript). [download](https://github.com/smilefam/SendBird-JavaScript/tree/master/web-live-chat)
2527

2628

2729
# [Documentation](https://docs.sendbird.com/javascript)
2830

2931

30-
## Upgrading to v3.0.26
32+
## Upgrading to v3.0.27
3133
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-
n/access control.
33-
* Added getTotalUnreadChannelCount
34-
* Now markAsRead doesn't have any delays
34+
35+
* Added updateUserMessage function and updateFileMessage function.
36+
* Added onMessageUpdated function in ChannelHandler.
37+
* now can confirm file upload progress by using progressHandler function if send param when sendFileMessage function call.
38+
* Added cancelUploadingFileMessage function.
3539

3640

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

SendBird.d.ts

+28-13
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ interface BaseMessage {
117117
channelUrl: string;
118118
messageId: number;
119119
createdAt: number;
120+
updatedAt: number;
120121
channelType: string;
121122
messageType: string;
122123
customType: string;
@@ -181,18 +182,32 @@ interface BaseChannel {
181182
createMessageListQuery(): MessageListQuery;
182183

183184
/* SendMessage */
184-
sendFileMessage(file: any, callback: Function): void;
185-
sendFileMessage(file: any, data: string, callback: Function): void;
186-
sendFileMessage(file: any, data: string, customType: string, callback: Function): void;
187-
sendFileMessage(file: any, data: string, customType: string, thumbnailSizes: [ThumbnailSize], callback: Function): void;
188-
sendFileMessage(file: any, name: string, type: string, size: number, data: string, callback: Function): void;
189-
sendFileMessage(file: any, name: string, type: string, size: number, data: string, customType: string, callback: Function): void;
190-
sendFileMessage(file: any, name: string, type: string, size: number, data: string, customType: string, thumbnailSizes: [ThumbnailSize], callback: Function): void;
191-
192-
sendUserMessage(message: string, callback: Function): void;
193-
sendUserMessage(message: string, data: string, callback: Function): void;
194-
sendUserMessage(message: string, data: string, customType: string, callback: Function): void;
195-
sendUserMessage(message: string, data: string, customType: string, targetLanguages: [string], callback: Function): void;
185+
sendFileMessage(file: any, callback: Function): FileMessage;
186+
sendFileMessage(file: any, progressHandler: Function, callback: Function): FileMessage;
187+
sendFileMessage(file: any, data: string, callback: Function): FileMessage;
188+
sendFileMessage(file: any, data: string, progressHandler: Function, callback: Function): FileMessage;
189+
sendFileMessage(file: any, data: string, customType: string, callback: Function): FileMessage;
190+
sendFileMessage(file: any, data: string, customType: string, progressHandler: Function, callback: Function): FileMessage;
191+
sendFileMessage(file: any, data: string, customType: string, thumbnailSizes: [ThumbnailSize], callback: Function): FileMessage;
192+
sendFileMessage(file: any, data: string, customType: string, thumbnailSizes: [ThumbnailSize], progressHandler: Function, callback: Function): FileMessage;
193+
sendFileMessage(file: any, name: string, type: string, size: number, data: string, callback: Function): FileMessage;
194+
sendFileMessage(file: any, name: string, type: string, size: number, data: string, progressHandler: Function, callback: Function): FileMessage;
195+
sendFileMessage(file: any, name: string, type: string, size: number, data: string, customType: string, callback: Function): FileMessage;
196+
sendFileMessage(file: any, name: string, type: string, size: number, data: string, customType: string, progressHandler: Function, callback: Function): FileMessage;
197+
sendFileMessage(file: any, name: string, type: string, size: number, data: string, customType: string, thumbnailSizes: [ThumbnailSize], callback: Function): FileMessage;
198+
sendFileMessage(file: any, name: string, type: string, size: number, data: string, customType: string, thumbnailSizes: [ThumbnailSize], progressHandler: Function, callback: Function): FileMessage;
199+
200+
sendUserMessage(message: string, callback: Function): UserMessage;
201+
sendUserMessage(message: string, data: string, callback: Function): UserMessage;
202+
sendUserMessage(message: string, data: string, customType: string, callback: Function): UserMessage;
203+
sendUserMessage(message: string, data: string, customType: string, targetLanguages: [string], callback: Function): UserMessage;
204+
205+
/* UpdateMessage */
206+
updateUserMessage(messageId: number, message: string, data: string, customType: string, callback: Function): void;
207+
updateFileMessage(messageId: number, data: string, customType: string, callback: Function): void;
208+
209+
/* Cancel File Upload */
210+
cancelUploadingFileMessage(messageReqId: string, callback: Function): void;
196211

197212
/* MetaCounter */
198213
createMetaCounters(metaCounterMap: Object, callback: Function): void;
@@ -315,7 +330,7 @@ interface GroupChannelListQuery {
315330

316331
interface GroupChannel extends BaseChannel {
317332
createChannel(users: [User], isDistinct: boolean, callback: Function): void;
318-
createChannel(users: [User], isDistinct: boolean, callback: Function): void;
333+
createChannel(users: [User], isDistinct: boolean, name: string, coverUrl: string, data: any, callback: Function): void;
319334
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverUrl: string, data: any, callback: Function): void;
320335
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverUrl: string, data: any, customType: string, callback: Function): void;
321336
createChannelWithUserIds(userIds: [string], isDistinct: boolean, name: string, coverImageFile: Object, data: any, callback: Function): void;

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

0 commit comments

Comments
 (0)