@cometchat/chat-sdk-javascript 4.1.5 → 4.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CometChat.d.ts +36 -1
- package/CometChat.js +1 -1
- package/package.json +1 -1
package/CometChat.d.ts
CHANGED
|
@@ -1386,12 +1386,36 @@ export class CometChat {
|
|
|
1386
1386
|
*/
|
|
1387
1387
|
static markAsDelivered(...args: any): any;
|
|
1388
1388
|
/**
|
|
1389
|
+
* Mark entire conversation as read for a user or group.
|
|
1390
|
+
* @param {string} conversationWith - User ID or Group ID
|
|
1391
|
+
* @param {string} conversationType - Conversation type (user or group)
|
|
1392
|
+
* @returns {Promise<string>}
|
|
1393
|
+
* @memberof CometChat
|
|
1394
|
+
*/
|
|
1395
|
+
static markConversationAsRead(conversationWith: string, conversationType: string): Promise<string>;
|
|
1396
|
+
/**
|
|
1397
|
+
* Mark entire conversation as delivered for a user or group.
|
|
1398
|
+
* @param {string} conversationWith - User ID or Group ID
|
|
1399
|
+
* @param {string} conversationType - Receiver type (user or group)
|
|
1400
|
+
* @returns {Promise<string>}
|
|
1401
|
+
* @memberof CometChat
|
|
1402
|
+
*/
|
|
1403
|
+
static markConversationAsDelivered(conversationWith: string, conversationType: string): Promise<string>;
|
|
1404
|
+
/**
|
|
1405
|
+
* @deprecated Please use markMessageAsUnread() instead.
|
|
1389
1406
|
* Mark all the messages after the specified message id as unread.
|
|
1390
1407
|
* @param {TextMessage | MediaMessage | CustomMessage | BaseMessage | any} message
|
|
1391
1408
|
* @returns {Promise<string>}
|
|
1392
1409
|
* @memberof CometChat
|
|
1393
1410
|
**/
|
|
1394
1411
|
static markAsUnread(message: TextMessage | MediaMessage | CustomMessage | any): Promise<string | CometChatException>;
|
|
1412
|
+
/**
|
|
1413
|
+
* Mark all the messages after the specified message id as unread.
|
|
1414
|
+
* @param {TextMessage | MediaMessage | CustomMessage | BaseMessage | any} message
|
|
1415
|
+
* @returns {Promise<string>}
|
|
1416
|
+
* @memberof CometChat
|
|
1417
|
+
**/
|
|
1418
|
+
static markMessageAsUnread(message: TextMessage | MediaMessage | CustomMessage | any): Promise<Conversation>;
|
|
1395
1419
|
/**
|
|
1396
1420
|
* Send a transient message.
|
|
1397
1421
|
* @param {string} uid
|
|
@@ -6613,8 +6637,9 @@ export class Conversation {
|
|
|
6613
6637
|
protected unreadMessageCount: number;
|
|
6614
6638
|
protected unreadMentionsCount: number;
|
|
6615
6639
|
protected lastReadMessageId: string;
|
|
6640
|
+
protected latestMessageId: string;
|
|
6616
6641
|
protected tags: Array<String>;
|
|
6617
|
-
constructor(conversationId: string, conversationType: string, lastMessage: TextMessage | MediaMessage | CustomMessage | any, conversationWith: User | Group, unreadMessageCount: number, tags: Array<String>, unreadMentionsCount: number | any, lastReadMessageId: string | any);
|
|
6642
|
+
constructor(conversationId: string, conversationType: string, lastMessage: TextMessage | MediaMessage | CustomMessage | any, conversationWith: User | Group, unreadMessageCount: number, tags: Array<String>, unreadMentionsCount: number | any, lastReadMessageId: string | any, latestMessageId?: string | any);
|
|
6618
6643
|
/**
|
|
6619
6644
|
* Method to set conversation ID of the conversation.
|
|
6620
6645
|
* @param {string} conversationId
|
|
@@ -6640,6 +6665,16 @@ export class Conversation {
|
|
|
6640
6665
|
* @param {string}
|
|
6641
6666
|
*/
|
|
6642
6667
|
setLastReadMessageId(id: string): void;
|
|
6668
|
+
/**
|
|
6669
|
+
* Method to get latestMessageId of the conversation.
|
|
6670
|
+
* @returns {string}
|
|
6671
|
+
*/
|
|
6672
|
+
getLatestMessageId(): string;
|
|
6673
|
+
/**
|
|
6674
|
+
* Method to set latestMessageId of the conversation.
|
|
6675
|
+
* @param {string}
|
|
6676
|
+
*/
|
|
6677
|
+
setLatestMessageId(id: string): void;
|
|
6643
6678
|
/**
|
|
6644
6679
|
* Method to set conversation type of the conversation.
|
|
6645
6680
|
* @param {string} conversationId
|