Skip to content

Commit

Permalink
v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Oct 9, 2020
1 parent 874e7c7 commit 7ced0e7
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
20 changes: 11 additions & 9 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,11 +470,11 @@ export namespace CometChat {
* @static
* @param {string} guid
* @param {Array<GroupMember>} groupMembers
* @param {Array<GroupMember>} [bannedMembersList]
* @param {Array<String>} bannedMembersList
* @returns {Promise<Object>}
* @memberof CometChat
*/
export function addMembersToGroup(guid: string, groupMembers: Array<GroupMember>, bannedMembersList?: Array<string>): Promise<Object>;
export function addMembersToGroup(guid: string, groupMembers: Array<GroupMember>, bannedMembersList: Array<string>): Promise<Object>;

/**-------------------------------------------------------------------*
* Call related functions provided by CometChat class *
Expand Down Expand Up @@ -661,12 +661,6 @@ export namespace CometChat {
* @memberof CometChat
*/
export function getConnectionStatus(): string;
/**
* It will return an Instance of the XMPPConnectionHelper Class.
*
* @memberof CometChat
*/
export function getXMPPConnectionHelper(): any;
/**
* Get the XMPP/ WEBRTC details from the servers
*
Expand Down Expand Up @@ -771,7 +765,7 @@ export namespace CometChat {
setBlockedByMe(blockedByMe: boolean): void;
getBlockedByMe(): boolean;
setHasBlockedMe(hasBlockedMe: boolean): void;
getHasBlockedMeMe(): boolean;
getHasBlockedMe(): boolean;
constructor(userObj: UserObj | any);
}
export class Me extends User {
Expand Down Expand Up @@ -1900,8 +1894,10 @@ export namespace CometChat {
limit: number;
searchKeyword: string;
guid: string;
scopes?: Array<String>;
setLimit(limit: number): this;
setSearchKeyword(searchKeyword: string): this;
setScopes(scopes: Array<String>): this;
build(): GroupMembersRequest;
}

Expand All @@ -1928,12 +1924,14 @@ export namespace CometChat {
searchKeyword: string;
shouldHideBlockedUsers: boolean;
role: string;
roles: Array<String>;
showFriendsOnly: boolean;
setLimit(limit: number): this;
setStatus(status: string): this;
setSearchKeyword(searchKeyword: string): this;
hideBlockedUsers(hideBlockedUsers: boolean): this;
setRole(role: string): this;
setRoles(roles: Array<String>): this;
friendsOnly(friendsOnly: boolean): this;
build(): UsersRequest;
}
Expand Down Expand Up @@ -2014,7 +2012,9 @@ export namespace CometChat {
updatedAt?: string;
onlyUpdate?: number;
category?: string;
categories?: Array<String>;
type?: string;
types?: Array<String>;
hideThreadedMessages?: boolean;
setLimit(limit: number): this;
setGUID(guid: string): this;
Expand All @@ -2028,7 +2028,9 @@ export namespace CometChat {
setUpdatedAfter(updatedAt: string): this;
updatesOnly(onlyUpdate: boolean): this;
setCategory(category: string): this;
setCategories(categories: Array<String>): this;
setType(type: string): this;
setTypes(types: Array<String>): this;
hideReplies(hideReplies: boolean): this;
/**
*Built the DefaultMessagesRequest
Expand Down
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This guide demonstrates how to add chat to a Javascript application using CometC
First, install via npm

```
npm install @cometchat-pro/[email protected].1 --save
npm install @cometchat-pro/[email protected].2 --save
```

Then, import the `CometChat` object wherever you want to use CometChat
Expand All @@ -47,7 +47,7 @@ import { CometChat } from "@cometchat-pro/chat"
Include the CometChat Javascript library in your HTML code

```
<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/[email protected].1/CometChat.js"></script>
<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/[email protected].2/CometChat.js"></script>
```

To learn more, please refer to our Documentation: <a href="https://prodocs.cometchat.com/docs/js-quick-start">Documentation</a>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat-pro/chat",
"version": "2.1.1",
"version": "2.1.2",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit 7ced0e7

Please sign in to comment.