Skip to content

Commit 0cf06c4

Browse files
v4.0.19
1 parent f2da200 commit 0cf06c4

3 files changed

Lines changed: 28 additions & 2 deletions

File tree

CometChat.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1266,13 +1266,39 @@ export namespace CometChat {
12661266
export function markAsDelivered(...args: any): any;
12671267

12681268
/**
1269+
* Mark entire conversation as read for a user or group.
1270+
* @param {string} conversationWith - User ID or Group ID
1271+
* @param {string} conversationType - Conversation type (user or group)
1272+
* @returns {Promise<string>}
1273+
* @memberof CometChat
1274+
*/
1275+
export function markConversationAsRead(conversationWith: string, conversationType: string): Promise<string>;
1276+
1277+
/**
1278+
* Mark entire conversation as delivered for a user or group.
1279+
* @param {string} conversationWith - User ID or Group ID
1280+
* @param {string} conversationType - Receiver type (user or group)
1281+
* @returns {Promise<string>}
1282+
* @memberof CometChat
1283+
*/
1284+
export function markConversationAsDelivered(conversationWith: string, conversationType: string): Promise<string>;
1285+
1286+
/**
1287+
* @deprecated Please use markMessageAsUnread() instead.
12691288
* Mark all the messages after the specified message id as unread.
12701289
* @param {TextMessage | MediaMessage | CustomMessage | BaseMessage | any} message
12711290
* @returns {Promise<string>}
12721291
* @memberof CometChat
12731292
**/
12741293
export function markAsUnread(message: TextMessage | MediaMessage | CustomMessage | any): Promise<string | CometChatException>;
12751294

1295+
/**
1296+
* Mark all the messages after the specified message id as unread.
1297+
* @param {TextMessage | MediaMessage | CustomMessage | BaseMessage | any} message
1298+
* @returns {Promise<string>}
1299+
* @memberof CometChat
1300+
*/
1301+
export function markMessageAsUnread(message: TextMessage | MediaMessage | CustomMessage | any): Promise<Conversation>;
12761302
/**
12771303
* Send a transient message.
12781304
* @param {string} uid

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.18",
3+
"version": "4.0.19",
44
"description": "A complete chat solution.",
55
"main": "CometChat.js",
66
"scripts": {

0 commit comments

Comments
 (0)