Skip to content

Commit f2da200

Browse files
v4.0.18
1 parent e1108f6 commit f2da200

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

CometChat.d.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2329,6 +2329,8 @@ export class BaseMessage implements Message {
23292329
protected unreadRepliesCount: number;
23302330
protected mentionedUsers?: User[];
23312331
protected mentionedMe?: boolean;
2332+
protected quotedMessageId?: number;
2333+
protected quotedMessage?: BaseMessage;
23322334
constructor(receiverId: string, messageType: string, receiverType: string, category: MessageCategory);
23332335
/**
23342336
* Get unread replies count of the message
@@ -2594,6 +2596,26 @@ export class BaseMessage implements Message {
25942596
* @returns {ReactionCount[]}
25952597
*/
25962598
getReactions(): ReactionCount[];
2599+
/**
2600+
* Get quoted message ID of the message.
2601+
* @returns {number}
2602+
*/
2603+
getQuotedMessageId(): number;
2604+
/**
2605+
* @param {number} value
2606+
* Set quoted message ID of the message.
2607+
*/
2608+
setQuotedMessageId(value: number): void;
2609+
/**
2610+
* Get quoted message of the message.
2611+
* @returns {BaseMessage}
2612+
*/
2613+
getQuotedMessage(): BaseMessage;
2614+
/**
2615+
* @param {BaseMessage} value
2616+
* Set quoted message of the message.
2617+
*/
2618+
setQuotedMessage(value: BaseMessage): void;
25972619
}
25982620

25992621
/**
@@ -2950,6 +2972,7 @@ export const MessageConstatnts: {
29502972
HAS_REACTIONS: string;
29512973
MENTIONED_UIDS: string;
29522974
ATTACHMENT_TYPES: string;
2975+
HIDE_QUOTED_MESSAGES: string;
29532976
WITH_PARENT: string;
29542977
};
29552978
};
@@ -5287,6 +5310,12 @@ export class MessagesRequest {
52875310
* Gets the flag indicating whether to fetch messages with parent message information.
52885311
*/
52895312
isWithParent(): boolean;
5313+
/**
5314+
* Gets the flag indicating whether to hide quoted messages when fetching messages.
5315+
*
5316+
* @return {boolean}
5317+
*/
5318+
isHideQuotedMessages(): boolean;
52905319
/**
52915320
* Get list of next messages based on the parameters specified in MessagesRequestBuilder class. The Developer need to call this method repeatedly using the same object of MessagesRequest class to get paginated list of message.
52925321
* @returns {Promise<BaseMessage[] | []>}
@@ -5327,6 +5356,7 @@ export class MessagesRequestBuilder {
53275356
/** @private */ HasMentions?: boolean;
53285357
/** @private */ HasReactions?: boolean;
53295358
/** @private */ mentionedUIDs?: Array<String>;
5359+
/** @private */ HideQuotedMessages?: boolean;
53305360
/** @private */ attachmentTypes?: Array<AttachmentType>;
53315361
/** @private */ WithParent?: boolean;
53325362
/**
@@ -5497,6 +5527,12 @@ export class MessagesRequestBuilder {
54975527
* @returns
54985528
*/
54995529
setAttachmentTypes(attachmentTypes: Array<AttachmentType>): this;
5530+
/**
5531+
* A method to hide quoted messages.
5532+
* @param {boolean} hideQuotedMessages
5533+
* @returns
5534+
*/
5535+
hideQuotedMessages(hideQuotedMessages: boolean): this;
55005536
/**
55015537
* This method will return an object of the MessagesRequest class.
55025538
* @returns {MessagesRequest}

CometChat.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cometchat/chat-sdk-react-native",
3-
"version": "4.0.17",
3+
"version": "4.0.18",
44
"description": "A complete chat solution.",
55
"main": "CometChat.js",
66
"scripts": {

0 commit comments

Comments
 (0)