Skip to content

Commit

Permalink
v3.0.129
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisallo committed Jul 24, 2020
1 parent dd192dd commit 3df3d70
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 23 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## v3.0.129(JUL 24, 2020)

- Renamed `includeReaction` to `includeReactions` in `channel.getMessageChangeLogs()` (`includeReaction` is deprecated).
- Added `ogMetaData` in `BaseMessage`.
- `ogMetaData` holds open graph properties including `title`, `url`, `description`, and `defaultImage`.
- `ogMetaData.defaultImage` has the image-related properties including `url`, `secureUrl`, `type`, `width`, `height`, `alt` as defined in the target website.
- `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.

## v3.0.128(JUL 10, 2020)

- Added `addOperators()` and `removeOperators()` in `GroupChannel` and `OpenChannel`.
Expand Down
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,15 @@ Check out [Basic Sample with SyncManager](https://github.com/sendbird/SendBird-J

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

## v3.0.128(JUL 10, 2020)
## v3.0.129(JUL 24, 2020)

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).

- Added `addOperators()` and `removeOperators()` in `GroupChannel` and `OpenChannel`.
- Bug-fix in missing `data` field of file message.
- Renamed `includeReaction` to `includeReactions` in `channel.getMessageChangeLogs()` (`includeReaction` is deprecated).
- Added `ogMetaData` in `BaseMessage`.
- `ogMetaData` holds open graph properties including `title`, `url`, `description`, and `defaultImage`.
- `ogMetaData.defaultImage` has the image-related properties including `url`, `secureUrl`, `type`, `width`, `height`, `alt` as defined in the target website.
- `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.

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

Expand Down
72 changes: 56 additions & 16 deletions SendBird.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Type Definitions for SendBird SDK v3.0.128
* Type Definitions for SendBird SDK v3.0.129
* homepage: https://sendbird.com/
* git: https://github.com/sendbird/SendBird-SDK-JavaScript
*/
Expand Down Expand Up @@ -80,9 +80,11 @@ declare namespace SendBird {
ScheduledUserMessageParams: ScheduledUserMessageParams;
GroupChannelChangeLogsParams: GroupChannelChangeLogsParams;
MessageMetaArray: MessageMetaArray;

Options: Options;

appInfo: AppInfo;
ekey: string;

setErrorFirstCallback(errorFirstCallback: boolean): void;

connect(userId: string, callback?: userCallback): void;
Expand Down Expand Up @@ -248,12 +250,16 @@ declare namespace SendBird {
getEmojiCategory(categoryId: number): Promise<EmojiCategory>;
getEmoji(emojiKey: string): Promise<Emoji>;
}

interface Options {
useMemberAsMessageSender: boolean;
typingIndicatorThrottle: number;
}

interface AppInfo {
emojiHash: string;
uploadSizeLimit: number;
useReaction: boolean;
premiumFeatureList: Array<string>;
}
interface FriendListQuery {
hasMore: boolean;
isLoading: boolean;
Expand Down Expand Up @@ -349,6 +355,7 @@ declare namespace SendBird {
parentMessageId: number;
parentMessageText: string;
threadInfo: ThreadInfo;
ogMetaData: OGMetaData;

isEqual(target: BaseMessageInstance): boolean;
isIdentical(target: BaseMessageInstance): boolean;
Expand Down Expand Up @@ -459,7 +466,9 @@ declare namespace SendBird {
messageType: 'file';
sender: Sender;
reqId: string;
url: string;
url: string; // DEPRECATED
plainUrl: string;
secureUrl: string;
name: string;
size: number;
type: string;
Expand Down Expand Up @@ -523,7 +532,9 @@ declare namespace SendBird {
}

interface ThumbnailObject {
url: string;
url: string; // DEPRECATED
plainUrl: string;
secureUrl: string;
height: number;
width: number;
real_height: number;
Expand All @@ -540,11 +551,14 @@ declare namespace SendBird {
interface User {
userId: string;
nickname: string;
profileUrl: string;
profileUrl: string; // DEPRECATED
plainProfileUrl: string;
secureProfileUrl: string;
metaData: Object;
connectionStatus: string;
lastSeenAt: string;
isActive: boolean;
requireAuth: boolean;
friendDiscoveryKey: string | null;
friendName: string | null;
preferredLanguages: Array<string>;
Expand Down Expand Up @@ -627,7 +641,8 @@ declare namespace SendBird {
getMessageChangeLogsByToken(
token: string,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: getMessageChangeLogsHandler
): void;

Expand All @@ -637,7 +652,8 @@ declare namespace SendBird {
getMessageChangeLogsByTimestamp(
ts: number,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: getMessageChangeLogsHandler
): void;

Expand Down Expand Up @@ -699,7 +715,8 @@ declare namespace SendBird {
customType: string,
senderUserIds: Array<string>,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: messageListCallback
): void;
getPreviousMessagesByTimestamp(
Expand Down Expand Up @@ -741,7 +758,8 @@ declare namespace SendBird {
customType: string,
senderUserIds: Array<string>,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: messageListCallback
): void;
getPreviousAndNextMessagesByTimestamp(
Expand Down Expand Up @@ -783,7 +801,8 @@ declare namespace SendBird {
customType: string,
senderUserIds: Array<string>,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: messageListCallback
): void;
getNextMessagesByID(
Expand Down Expand Up @@ -825,7 +844,8 @@ declare namespace SendBird {
customType: string,
senderUserIds: Array<string>,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: messageListCallback
): void;
getPreviousMessagesByID(
Expand Down Expand Up @@ -867,7 +887,8 @@ declare namespace SendBird {
customType: string,
senderUserIds: Array<string>,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: messageListCallback
): void;
getPreviousAndNextMessagesByID(
Expand Down Expand Up @@ -909,7 +930,8 @@ declare namespace SendBird {
customType: string,
senderUserIds: Array<string>,
includeMetaArray: boolean,
includeReaction: boolean,
includeReaction: boolean, // DEPRECATED
includeReactions: boolean,
callback: messageListCallback
): void;

Expand Down Expand Up @@ -1219,7 +1241,8 @@ declare namespace SendBird {
customTypeFilter: string;
senderUserIdsFilter: Array<string>;
includeMetaArray: boolean;
includeReaction: boolean;
includeReaction: boolean; // DEPRECATED
includeReactions: boolean;
includeReplies: boolean;
includeParentMessageText: boolean;
includeThreadInfo: boolean;
Expand Down Expand Up @@ -1544,6 +1567,23 @@ declare namespace SendBird {
channelType: string;
}

interface OGMetaData {
new (): OGMetaData;
title: string;
url: string;
description: string;
defaultImage: OGImage;
}
interface OGImage {
new (): OGImage;
url: string;
secureUrl: string;
type: string;
width: number;
height: number;
alt: string;
}

type groupChannelCallback = (groupChannel: GroupChannel, error: SendBirdError) => void;
type distinctGroupChannelCallback = (response: DistinctGroupChannelResponse, error: SendBirdError) => void;
type getPushPreferenceCallback = (isPushOn: boolean, error: SendBirdError) => void;
Expand Down
4 changes: 2 additions & 2 deletions SendBird.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.0.128",
"version": "3.0.129",
"authors": ["SendBird <[email protected]>"],
"homepage": "https://github.com/sendbird/SendBird-SDK-JavaScript",
"description": "SendBird JavaScript SDK",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sendbird",
"version": "3.0.128",
"version": "3.0.129",
"description": "SendBird JavaScript SDK",
"main": "SendBird.min.js",
"dependencies": {
Expand Down

0 comments on commit 3df3d70

Please sign in to comment.