Skip to content

Commit

Permalink
v4.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikRitik committed Apr 16, 2024
1 parent 2293ddb commit b799e78
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 9 deletions.
53 changes: 46 additions & 7 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,13 +1067,6 @@ export namespace CometChat {
*/
export function rejectCall(sessionId: string, status: any): Promise<Call>;

/**
* Function to clear active call.
* @memberof CometChat
*/
export function clearActiveCall(): void;


/**
* Function to end an ongoing call.
* @param {string} sessionid
Expand Down Expand Up @@ -3016,6 +3009,7 @@ export class Group {
private joinedAt;
private membersCount;
private tags;
private isBanned;
/**
* Creates an instance of Group.
* @param {string} guid
Expand Down Expand Up @@ -3181,6 +3175,11 @@ export class Group {
* @returns {string[]}
*/
getTags(): Array<String>;
/**
* Method to check if the logged-in user is banned from the group or not.
* @returns {boolean} status of the logged-in user as banned or not.
*/
isBannedFromGroup(): boolean;
}

export class MessageListener {
Expand Down Expand Up @@ -4329,6 +4328,46 @@ export class CustomMessage extends BaseMessage implements Message {
protected data?;
private tags?;
constructor(...args: any[]);
/**
* Retrieves the preview text for a custom message to be displayed in the Conversation List.
* This method allows for a textual representation of the custom message that can be used
* as a conversation snippet or preview, enhancing the user experience by providing context.
* @returns {string} The text to display as the conversation preview.
*/
getConversationText(): string;
/**
* Sets the preview text for a custom message to be displayed in the Conversation List.
* This method allows for a textual representation of the custom message that can be used
* as a conversation snippet or preview, enhancing the user experience by providing context.
* @param {string} text The text to set as the conversation preview.
*/
setConversationText(text: string): void;
/**
* Determines whether the custom message should be considered as the last message
* in the conversation, potentially changing the order of conversations.
* This method indicates if sending a custom message will update the conversation's last message,
* which may affect the conversation's position in the list based on the sorting order.
* @returns {boolean} A boolean value indicating whether sending the custom message triggers an update
* to the last message of the conversation, potentially altering the conversation order.
*/
willUpdateConversation(): boolean;
/**
* Set the flag to determine if the conversation should be updated.
* @param {boolean} updateConversation The flag to set if the conversation should be updated.
*/
shouldUpdateConversation(updateConversation: boolean): void;
/**
* Determines whether a push notification should be sent for the custom message.
* This method checks if the current custom message configuration specifies that a push notification
* is warranted when the message is sent.
* @returns {boolean} A boolean value indicating whether to send a push notification for the custom message.
*/
willSendNotification(): boolean;
/**
* Set the flag to determine if a notification should be sent.
* @param {boolean} sendNotification The flag to set if a notification should be sent.
*/
shouldSendNotification(sendNotification: boolean): void;
/**
* Method to get custom data of the message.
* @returns {Object}
Expand Down
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat/chat-sdk-react-native",
"version": "4.0.6",
"version": "4.0.7",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit b799e78

Please sign in to comment.