Skip to content

Commit

Permalink
SDK ver3.0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
Alchemist85K committed Aug 28, 2017
1 parent 9d2d84c commit 4e6ca53
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

## v3.0.40
* Added `serialize()` and `buildFromSerializedData()` in `User`, `Message` and `Channel`.
* Added `getChannelCount()` and `resetMyHistory()` in `GroupChannel`.

## v3.0.39
* Added `isBlockedByMe` and `isBlockingMe` in `Member`.

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ SendBird-SDK-JavaScript
# [Documentation](https://docs.sendbird.com/javascript)


## Upgrading to v3.0.39
## Upgrading to v3.0.40
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).
* Added `isBlockedByMe` and `isBlockingMe` in `Member`.
* Added `serialize()` and `buildFromSerializedData()` in `User`, `Message` and `Channel`.
* Added `getChannelCount()` and `resetMyHistory()` in `GroupChannel`.


## [Change Log](https://github.com/smilefam/SendBird-SDK-JavaScript/blob/master/CHANGELOG.md)
Expand Down
11 changes: 11 additions & 0 deletions SendBird.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ interface User {
updateMetaData(metaDataMap: Object, upsert: boolean, callback: Function): void;
deleteMetaData(metaDataKey: string, callback: Function): void;
deleteAllMetaData(callback: Function): void;

serialize(): Object;
buildFromSerializedData(serializedObject: Object): User;
}

interface Member extends User {
Expand Down Expand Up @@ -148,6 +151,9 @@ interface BaseMessage {
channelType: string;
messageType: string;
customType: string;

serialize(): Object;
buildFromSerializedData(serializedObject: Object): UserMessage | FileMessage | AdminMessage;
}

interface AdminMessage extends BaseMessage {
Expand Down Expand Up @@ -280,6 +286,8 @@ interface BaseChannel {
getPreviousMessagesByID(messageId: number, isInclusive: boolean, prevtResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;
getPreviousAndNextMessagesByID(messageId: number, prevtResultSize: number, nextResultSize: number, shouldReverse:boolean, messageType: string, customType: string, callback: Function): void;

serialize(): Object;
buildFromSerializedData(serializedObject: Object): OpenChannel | GroupChannel;
}

interface ChannelHandlerFactory {
Expand Down Expand Up @@ -401,6 +409,7 @@ interface GroupChannelListQuery {
next(callback?: Function): void;
}


interface GroupChannel extends BaseChannel {
isDistinct: boolean;
isPushEnabled: boolean;
Expand Down Expand Up @@ -456,6 +465,8 @@ interface GroupChannel extends BaseChannel {

setPushPreference(pushOn: boolean, callback: Function): void;
getPushPreference(callback: Function): void;

resetMyHistory(callback?: Function): void;
}

declare var SendBird: SendBirdFactory;
11 changes: 5 additions & 6 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.39",
"version": "3.0.40",
"authors": [
"SendBird <[email protected]>"
],
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.39",
"version": "3.0.40",
"description": "SendBird JavaScript SDK",
"main": "SendBird.min.js",
"dependencies": {
Expand Down

0 comments on commit 4e6ca53

Please sign in to comment.