Skip to content

Commit

Permalink
v2.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Jul 9, 2020
1 parent 14a99ec commit ea09109
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ export namespace CometChat {
export class BaseMessage implements Message {
protected id?: number;
protected conversationId?: string;
protected parentMessageId?: string;
protected muid?: string;
protected sender?: Me | any;
protected receiverId?: string;
Expand All @@ -849,11 +850,14 @@ export namespace CometChat {
protected editedBy: string;
protected deletedAt: number;
protected deletedBy: string;
protected replyCount: number;
constructor(receiverId: string, messageType: string, receiverType: string, category: string);
getId(): number;
setId(value: number): void;
getConversationId(): string;
setConversationId(value: string): void;
getParentMessageId(): number;
setParentMessageId(value: number): void;
getMuid(): string;
setMuid(value: string): void;
getSender(): User;
Expand Down Expand Up @@ -889,6 +893,8 @@ export namespace CometChat {
getDeletedAt(): number;
setDeletedBy(deletedBy: string): void;
getDeletedBy(): string;
setReplyCount(replyCount: number): void;
getReplyCount(): number;
}

export class TextMessage extends BaseMessage implements Message {
Expand Down Expand Up @@ -1128,6 +1134,7 @@ export namespace CometChat {
UPDATED_AT: string;
CATEGORY: string;
TYPE: string;
HIDE_REPLIES: string;
};
};
};
Expand Down Expand Up @@ -1939,6 +1946,7 @@ export namespace CometChat {
maxLimit: number;
uid?: string;
guid?: string;
parentMessageId?: number;
timestamp?: number;
id?: number;
unread?: boolean;
Expand All @@ -1948,9 +1956,11 @@ export namespace CometChat {
onlyUpdate?: number;
category?: string;
type?: string;
hideThreadedMessages?: boolean;
setLimit(limit: number): this;
setGUID(guid: string): this;
setUID(uid: string): this;
setParentMessageId(parentMessageId: number): this
setTimestamp(timestamp?: number): this;
setMessageId(id?: number): this;
setUnread(unread?: boolean): this;
Expand All @@ -1960,6 +1970,7 @@ export namespace CometChat {
updatesOnly(onlyUpdate: boolean): this;
setCategory(category: string): this;
setType(type: string): this;
hideReplies(hideReplies: boolean): this;
/**
*Built the DefaultMessagesRequest
*
Expand Down Expand Up @@ -2093,6 +2104,7 @@ export namespace CometChat {
subscribePresenceForRoles(roles: string[]): this;
subscribePresenceForFriends(): this;
setRegion(region?: string): this;
enableAutoJoinForGroups(isAutoJoinEnabled: boolean): this;
build(): AppSettings;
}

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/cordova-ionic-chat@2.0.10 --save
npm install @cometchat-pro/cordova-ionic-chat@2.0.11 --save
```

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

```
<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/cordova-ionic-chat@2.0.10/CometChat.js"></script>
<script type="text/javascript" src="https://unpkg.com/@cometchat-pro/cordova-ionic-chat@2.0.11/CometChat.js"></script>
```

To learn more, please refer to our Documentation: <a href="https://prodocs.cometchat.com/v2.0/docs/cordova-ionic-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/cordova-ionic-chat",
"version": "2.0.10",
"version": "2.0.11",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit ea09109

Please sign in to comment.