Skip to content

Commit 3df3d70

Browse files
committed
v3.0.129
1 parent dd192dd commit 3df3d70

File tree

6 files changed

+74
-23
lines changed

6 files changed

+74
-23
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## v3.0.129(JUL 24, 2020)
4+
5+
- Renamed `includeReaction` to `includeReactions` in `channel.getMessageChangeLogs()` (`includeReaction` is deprecated).
6+
- Added `ogMetaData` in `BaseMessage`.
7+
- `ogMetaData` holds open graph properties including `title`, `url`, `description`, and `defaultImage`.
8+
- `ogMetaData.defaultImage` has the image-related properties including `url`, `secureUrl`, `type`, `width`, `height`, `alt` as defined in the target website.
9+
- `ogMetaData` may not be set at the moment of sending. Once the message is sent, Sendbird service would fetch and analyze the open graph property and give the result as a form of message update event.
10+
311
## v3.0.128(JUL 10, 2020)
412

513
- Added `addOperators()` and `removeOperators()` in `GroupChannel` and `OpenChannel`.

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,15 @@ Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-J
5252

5353
# [Documentation](https://docs.sendbird.com/javascript)
5454

55-
## v3.0.128(JUL 10, 2020)
55+
## v3.0.129(JUL 24, 2020)
5656

5757
If you want to check the record of other version, go to [Change Log](https://github.com/sendbird/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md).
5858

59-
- Added `addOperators()` and `removeOperators()` in `GroupChannel` and `OpenChannel`.
60-
- Bug-fix in missing `data` field of file message.
59+
- Renamed `includeReaction` to `includeReactions` in `channel.getMessageChangeLogs()` (`includeReaction` is deprecated).
60+
- Added `ogMetaData` in `BaseMessage`.
61+
- `ogMetaData` holds open graph properties including `title`, `url`, `description`, and `defaultImage`.
62+
- `ogMetaData.defaultImage` has the image-related properties including `url`, `secureUrl`, `type`, `width`, `height`, `alt` as defined in the target website.
63+
- `ogMetaData` may not be set at the moment of sending. Once the message is sent, Sendbird service would fetch and analyze the open graph property and give the result as a form of message update event.
6164

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

SendBird.d.ts

Lines changed: 56 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Type Definitions for SendBird SDK v3.0.128
2+
* Type Definitions for SendBird SDK v3.0.129
33
* homepage: https://sendbird.com/
44
* git: https://github.com/sendbird/SendBird-SDK-JavaScript
55
*/
@@ -80,9 +80,11 @@ declare namespace SendBird {
8080
ScheduledUserMessageParams: ScheduledUserMessageParams;
8181
GroupChannelChangeLogsParams: GroupChannelChangeLogsParams;
8282
MessageMetaArray: MessageMetaArray;
83-
8483
Options: Options;
8584

85+
appInfo: AppInfo;
86+
ekey: string;
87+
8688
setErrorFirstCallback(errorFirstCallback: boolean): void;
8789

8890
connect(userId: string, callback?: userCallback): void;
@@ -248,12 +250,16 @@ declare namespace SendBird {
248250
getEmojiCategory(categoryId: number): Promise<EmojiCategory>;
249251
getEmoji(emojiKey: string): Promise<Emoji>;
250252
}
251-
252253
interface Options {
253254
useMemberAsMessageSender: boolean;
254255
typingIndicatorThrottle: number;
255256
}
256-
257+
interface AppInfo {
258+
emojiHash: string;
259+
uploadSizeLimit: number;
260+
useReaction: boolean;
261+
premiumFeatureList: Array<string>;
262+
}
257263
interface FriendListQuery {
258264
hasMore: boolean;
259265
isLoading: boolean;
@@ -349,6 +355,7 @@ declare namespace SendBird {
349355
parentMessageId: number;
350356
parentMessageText: string;
351357
threadInfo: ThreadInfo;
358+
ogMetaData: OGMetaData;
352359

353360
isEqual(target: BaseMessageInstance): boolean;
354361
isIdentical(target: BaseMessageInstance): boolean;
@@ -459,7 +466,9 @@ declare namespace SendBird {
459466
messageType: 'file';
460467
sender: Sender;
461468
reqId: string;
462-
url: string;
469+
url: string; // DEPRECATED
470+
plainUrl: string;
471+
secureUrl: string;
463472
name: string;
464473
size: number;
465474
type: string;
@@ -523,7 +532,9 @@ declare namespace SendBird {
523532
}
524533

525534
interface ThumbnailObject {
526-
url: string;
535+
url: string; // DEPRECATED
536+
plainUrl: string;
537+
secureUrl: string;
527538
height: number;
528539
width: number;
529540
real_height: number;
@@ -540,11 +551,14 @@ declare namespace SendBird {
540551
interface User {
541552
userId: string;
542553
nickname: string;
543-
profileUrl: string;
554+
profileUrl: string; // DEPRECATED
555+
plainProfileUrl: string;
556+
secureProfileUrl: string;
544557
metaData: Object;
545558
connectionStatus: string;
546559
lastSeenAt: string;
547560
isActive: boolean;
561+
requireAuth: boolean;
548562
friendDiscoveryKey: string | null;
549563
friendName: string | null;
550564
preferredLanguages: Array<string>;
@@ -627,7 +641,8 @@ declare namespace SendBird {
627641
getMessageChangeLogsByToken(
628642
token: string,
629643
includeMetaArray: boolean,
630-
includeReaction: boolean,
644+
includeReaction: boolean, // DEPRECATED
645+
includeReactions: boolean,
631646
callback: getMessageChangeLogsHandler
632647
): void;
633648

@@ -637,7 +652,8 @@ declare namespace SendBird {
637652
getMessageChangeLogsByTimestamp(
638653
ts: number,
639654
includeMetaArray: boolean,
640-
includeReaction: boolean,
655+
includeReaction: boolean, // DEPRECATED
656+
includeReactions: boolean,
641657
callback: getMessageChangeLogsHandler
642658
): void;
643659

@@ -699,7 +715,8 @@ declare namespace SendBird {
699715
customType: string,
700716
senderUserIds: Array<string>,
701717
includeMetaArray: boolean,
702-
includeReaction: boolean,
718+
includeReaction: boolean, // DEPRECATED
719+
includeReactions: boolean,
703720
callback: messageListCallback
704721
): void;
705722
getPreviousMessagesByTimestamp(
@@ -741,7 +758,8 @@ declare namespace SendBird {
741758
customType: string,
742759
senderUserIds: Array<string>,
743760
includeMetaArray: boolean,
744-
includeReaction: boolean,
761+
includeReaction: boolean, // DEPRECATED
762+
includeReactions: boolean,
745763
callback: messageListCallback
746764
): void;
747765
getPreviousAndNextMessagesByTimestamp(
@@ -783,7 +801,8 @@ declare namespace SendBird {
783801
customType: string,
784802
senderUserIds: Array<string>,
785803
includeMetaArray: boolean,
786-
includeReaction: boolean,
804+
includeReaction: boolean, // DEPRECATED
805+
includeReactions: boolean,
787806
callback: messageListCallback
788807
): void;
789808
getNextMessagesByID(
@@ -825,7 +844,8 @@ declare namespace SendBird {
825844
customType: string,
826845
senderUserIds: Array<string>,
827846
includeMetaArray: boolean,
828-
includeReaction: boolean,
847+
includeReaction: boolean, // DEPRECATED
848+
includeReactions: boolean,
829849
callback: messageListCallback
830850
): void;
831851
getPreviousMessagesByID(
@@ -867,7 +887,8 @@ declare namespace SendBird {
867887
customType: string,
868888
senderUserIds: Array<string>,
869889
includeMetaArray: boolean,
870-
includeReaction: boolean,
890+
includeReaction: boolean, // DEPRECATED
891+
includeReactions: boolean,
871892
callback: messageListCallback
872893
): void;
873894
getPreviousAndNextMessagesByID(
@@ -909,7 +930,8 @@ declare namespace SendBird {
909930
customType: string,
910931
senderUserIds: Array<string>,
911932
includeMetaArray: boolean,
912-
includeReaction: boolean,
933+
includeReaction: boolean, // DEPRECATED
934+
includeReactions: boolean,
913935
callback: messageListCallback
914936
): void;
915937

@@ -1219,7 +1241,8 @@ declare namespace SendBird {
12191241
customTypeFilter: string;
12201242
senderUserIdsFilter: Array<string>;
12211243
includeMetaArray: boolean;
1222-
includeReaction: boolean;
1244+
includeReaction: boolean; // DEPRECATED
1245+
includeReactions: boolean;
12231246
includeReplies: boolean;
12241247
includeParentMessageText: boolean;
12251248
includeThreadInfo: boolean;
@@ -1544,6 +1567,23 @@ declare namespace SendBird {
15441567
channelType: string;
15451568
}
15461569

1570+
interface OGMetaData {
1571+
new (): OGMetaData;
1572+
title: string;
1573+
url: string;
1574+
description: string;
1575+
defaultImage: OGImage;
1576+
}
1577+
interface OGImage {
1578+
new (): OGImage;
1579+
url: string;
1580+
secureUrl: string;
1581+
type: string;
1582+
width: number;
1583+
height: number;
1584+
alt: string;
1585+
}
1586+
15471587
type groupChannelCallback = (groupChannel: GroupChannel, error: SendBirdError) => void;
15481588
type distinctGroupChannelCallback = (response: DistinctGroupChannelResponse, error: SendBirdError) => void;
15491589
type getPushPreferenceCallback = (isPushOn: boolean, error: SendBirdError) => void;

SendBird.min.js

Lines changed: 2 additions & 2 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.128",
3+
"version": "3.0.129",
44
"authors": ["SendBird <[email protected]>"],
55
"homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript",
66
"description": "SendBird JavaScript SDK",

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

0 commit comments

Comments
 (0)