Skip to content

Commit

Permalink
v2.0.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Jul 9, 2020
1 parent eedf315 commit bd0461a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 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 @@ -1927,6 +1934,7 @@ export namespace CometChat {
maxLimit: number;
uid?: string;
guid?: string;
parentMessageId?: number;
timestamp?: number;
id?: number;
unread?: boolean;
Expand All @@ -1936,9 +1944,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 @@ -1948,6 +1958,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 @@ -2081,6 +2092,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.

2 changes: 1 addition & 1 deletion 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].11 --save
npm install @cometchat-pro/[email protected].12 --save
```

Then, import the `CometChat` object wherever you want to use CometChat
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": "@cometchat-pro/react-native-chat",
"version": "2.0.11",
"version": "2.0.12",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit bd0461a

Please sign in to comment.