@cometchat/chat-sdk-javascript 4.0.2 → 4.0.3

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 CHANGED
@@ -18,6 +18,8 @@ export class CometChat {
18
18
  KEY_DATA: string;
19
19
  KEY_META: string;
20
20
  KEY_CURSOR: string;
21
+ KEY_NEXT: string;
22
+ KEY_PREVIOUS: string;
21
23
  KEY_ACTION: string;
22
24
  KEY_MESSAGE: string;
23
25
  KEY_ERROR: string;
@@ -29,6 +31,7 @@ export class CometChat {
29
31
  KEY_IDENTITY: string;
30
32
  KEY_SERVICE: string;
31
33
  KEY_ENTITIES: string;
34
+ KEY_REACTIONS: string;
32
35
  KEY_ENTITITY: string;
33
36
  KEY_ENTITYTYPE: string;
34
37
  KEY_ATTACHMENTS: string;
@@ -716,6 +719,7 @@ export class CometChat {
716
719
  static SESSION_STORE: {
717
720
  SESSION_ID: string;
718
721
  };
722
+ static REACTION_ACTION: typeof REACTION_ACTION;
719
723
  static ExtensionErrors: {
720
724
  INVALID_EXTENSION: {
721
725
  code: string;
@@ -873,6 +877,7 @@ export class CometChat {
873
877
  static DEFAULT_VALUES: {
874
878
  ZERO: number;
875
879
  MSGS_LIMIT: number;
880
+ REACTIONS_LIMIT: number;
876
881
  MSGS_MAX_LIMIT: number;
877
882
  USERS_LIMIT: number;
878
883
  USERS_MAX_LIMIT: number;
@@ -975,6 +980,8 @@ export class CometChat {
975
980
  };
976
981
  static MessagesRequest: typeof MessagesRequest;
977
982
  static MessagesRequestBuilder: typeof MessagesRequestBuilder;
983
+ static ReactionRequest: typeof ReactionRequest;
984
+ static ReactionRequestBuilder: typeof ReactionRequestBuilder;
978
985
  static UsersRequest: typeof UsersRequest;
979
986
  static UsersRequestBuilder: typeof UsersRequestBuilder;
980
987
  static ConversationsRequest: typeof ConversationsRequest;
@@ -1366,6 +1373,22 @@ export class CometChat {
1366
1373
  * @memberof CometChat
1367
1374
  */
1368
1375
  static getUnreadMessageCountForGroup(GUID: string, doHideMessages?: boolean): Promise<Object>;
1376
+ /**
1377
+ * Function to add reaction for the provided messageID.
1378
+ * @param {string | any} messageId
1379
+ * @param {string} reaction
1380
+ * @returns {Promise<BaseMessage>}
1381
+ * @memberof CometChat
1382
+ */
1383
+ static addReaction(messageId: string | any, reaction: string): Promise<BaseMessage>;
1384
+ /**
1385
+ * Function to remove reaction for the provided messageID.
1386
+ * @param {string | any} messageId
1387
+ * @param {string} reaction
1388
+ * @returns {Promise<BaseMessage>}
1389
+ * @memberof CometChat
1390
+ */
1391
+ static removeReaction(messageId: string | any, reaction: string): Promise<BaseMessage>;
1369
1392
  /**
1370
1393
  * Funtion to edit a message.
1371
1394
  * @param {BaseMessage} message
@@ -2245,6 +2268,8 @@ export class BaseMessage implements Message {
2245
2268
  protected sender?: User;
2246
2269
  protected receiverId?: string;
2247
2270
  protected receiver?: User | Group;
2271
+ protected data?: object;
2272
+ protected reactions?: ReactionCount[];
2248
2273
  protected type?: string;
2249
2274
  protected category?: MessageCategory;
2250
2275
  protected receiverType?: string;
@@ -2264,108 +2289,119 @@ export class BaseMessage implements Message {
2264
2289
  protected deletedBy: string;
2265
2290
  protected replyCount: number;
2266
2291
  protected rawMessage: Object;
2292
+ protected unreadRepliesCount: number;
2267
2293
  protected mentionedUsers?: User[];
2268
2294
  protected mentionedMe?: boolean;
2269
2295
  constructor(receiverId: string, messageType: string, receiverType: string, category: MessageCategory);
2296
+ /**
2297
+ * Get unread replies count of the message
2298
+ * @returns {number}
2299
+ */
2300
+ getUnreadRepliesCount(): number;
2301
+ /**
2302
+ * @param {number}
2303
+ * Set unread replies count of the message
2304
+ */
2305
+ setUnreadRepliesCount(value: number): void;
2270
2306
  /**
2271
2307
  * Get ID of the message
2272
2308
  * @returns {number}
2273
- */
2309
+ */
2274
2310
  getId(): number;
2275
2311
  /**
2276
2312
  * @param {number} value
2277
2313
  * Set ID of the message
2278
- */
2314
+ */
2279
2315
  setId(value: number): void;
2280
2316
  /**
2281
2317
  * Get conversation ID of the message.
2282
2318
  * @returns {string}
2283
- */
2319
+ */
2284
2320
  getConversationId(): string;
2285
2321
  /**
2286
2322
  * @param {string} value
2287
2323
  * Set conversation ID of the message.
2288
- */
2324
+ */
2289
2325
  setConversationId(value: string): void;
2290
2326
  /**
2291
2327
  * Get parent message ID of the message.
2292
2328
  * @returns {number}
2293
- */
2329
+ */
2294
2330
  getParentMessageId(): number;
2295
2331
  /**
2296
2332
  * @param {number} value
2297
2333
  * Set parent message ID of the message.
2298
- */
2334
+ */
2299
2335
  setParentMessageId(value: number): void;
2300
2336
  /**
2301
2337
  * Get MUID of the message.
2302
2338
  * @returns {string}
2303
- */
2339
+ */
2304
2340
  getMuid(): string;
2305
2341
  /**
2306
2342
  * @param {string} value
2307
2343
  * Sets the MUID of the message.
2308
- */
2344
+ */
2309
2345
  setMuid(value: string): void;
2310
2346
  /**
2311
2347
  * Get sender of the message.
2312
2348
  * @returns {User}
2313
- */
2349
+ */
2314
2350
  getSender(): User;
2315
2351
  /**
2316
2352
  * @param {User} value
2317
2353
  * Set sender of the message.
2318
- */
2354
+ */
2319
2355
  setSender(value: User): void;
2320
2356
  /**
2321
2357
  * Get receiver of the message.
2322
2358
  * @returns {User | Group}
2323
- */
2359
+ */
2324
2360
  getReceiver(): User | Group;
2325
2361
  /**
2326
2362
  * @param {User | Group} value
2327
2363
  * Set receiver of the message.
2328
- */
2364
+ */
2329
2365
  setReceiver(value: User | Group): void;
2330
2366
  /**
2331
2367
  * Get receiverID of the message.
2332
2368
  * @returns {string}
2333
- */
2369
+ */
2334
2370
  getReceiverId(): string;
2335
2371
  /**
2336
2372
  * @param {string} value
2337
2373
  * Set receiverId of the message.
2338
- */
2374
+ */
2339
2375
  setReceiverId(value: string): void;
2340
2376
  /**
2341
2377
  * Get type of the message.
2342
2378
  * @returns {string}
2343
- */
2379
+ */
2344
2380
  getType(): string;
2345
2381
  /**
2346
2382
  * @param {string} value
2347
2383
  * Set type of the message.
2348
- */
2384
+ */
2349
2385
  setType(value: string): void;
2350
2386
  /**
2351
2387
  * Get receiver type of the message.
2352
2388
  * @returns {string}
2353
- */
2389
+ */
2354
2390
  getReceiverType(): string;
2355
2391
  /**
2356
2392
  * @param {string} value
2357
2393
  * Set the receiver type of the message.
2358
- */
2394
+ */
2359
2395
  setReceiverType(value: string): void;
2360
2396
  /**
2361
2397
  * Get message's sentAt timestamp.
2362
2398
  * @returns {number}
2363
- */
2399
+ */
2364
2400
  getSentAt(): number;
2365
2401
  /**
2366
2402
  * @param {number} value
2367
2403
  * Set message's sentAt timestamp.
2368
- */
2404
+ */
2369
2405
  setSentAt(value: number): void;
2370
2406
  /** @private */
2371
2407
  getStatus(): string;
@@ -2374,22 +2410,22 @@ export class BaseMessage implements Message {
2374
2410
  /**
2375
2411
  * Get delivery timestamp of the message.
2376
2412
  * @returns {number}
2377
- */
2413
+ */
2378
2414
  getDeliveredAt(): number;
2379
2415
  /**
2380
2416
  * @param {number} deliveredAt
2381
2417
  * Set delivery timestamp of the message.
2382
- */
2418
+ */
2383
2419
  setDeliveredAt(deliveredAt: number): void;
2384
2420
  /**
2385
2421
  * Get timestamp of the message at which it was delivered to logged in user.
2386
2422
  * @returns {number}
2387
- */
2423
+ */
2388
2424
  getDeliveredToMeAt(): number;
2389
2425
  /**
2390
2426
  * @param {number} deliveredToMeAt
2391
2427
  * Set timestamp of the message at which it was delivered to logged in user.
2392
- */
2428
+ */
2393
2429
  setDeliveredToMeAt(deliveredToMeAt: number): void;
2394
2430
  /**
2395
2431
  * Get Timestamp of the when message was read at.
@@ -2399,67 +2435,67 @@ export class BaseMessage implements Message {
2399
2435
  /**
2400
2436
  * @param {number} readAt
2401
2437
  * Set read timestamp of the message.
2402
- */
2438
+ */
2403
2439
  setReadAt(readAt: number): void;
2404
2440
  /**
2405
2441
  * Get timestamp of the message at which it was read by the logged in user.
2406
2442
  * @returns {number}
2407
- */
2443
+ */
2408
2444
  getReadByMeAt(): number;
2409
2445
  /**
2410
2446
  * @param {number} readByMeAt
2411
2447
  * Set timestamp of the message at which it was read by the logged in user.
2412
- */
2448
+ */
2413
2449
  setReadByMeAt(readByMeAt: number): void;
2414
2450
  /**
2415
2451
  * Get category of the message.
2416
2452
  * @returns {string}
2417
- */
2453
+ */
2418
2454
  getCategory(): MessageCategory;
2419
2455
  /**
2420
2456
  * @param {string} category
2421
2457
  * Set category of the message.
2422
- */
2458
+ */
2423
2459
  setCategory(category: MessageCategory): void;
2424
2460
  /**
2425
2461
  * Get timestamp of the message when it was updated/edited.
2426
2462
  * @returns
2427
- */
2463
+ */
2428
2464
  getEditedAt(): number;
2429
2465
  /**
2430
2466
  * @param {number} editedAt
2431
2467
  * Set timestamp of the message when it was updated/edited.
2432
- */
2468
+ */
2433
2469
  setEditedAt(editedAt: number): void;
2434
2470
  /**
2435
2471
  * Get UID of the user who edited/updated the message.
2436
2472
  * @returns
2437
- */
2473
+ */
2438
2474
  getEditedBy(): string;
2439
2475
  /**
2440
2476
  * @param {string} editedBy
2441
2477
  * Set UID of the user who edited/updated the message.
2442
- */
2478
+ */
2443
2479
  setEditedBy(editedBy: string): void;
2444
2480
  /**
2445
2481
  * Get timestamp of the message when it was deleted.
2446
2482
  * @returns {number}
2447
- */
2483
+ */
2448
2484
  getDeletedAt(): number;
2449
2485
  /**
2450
2486
  * @param {number} deletedAt
2451
2487
  * Set timestamp of the message when it was deleted.
2452
- */
2488
+ */
2453
2489
  setDeletedAt(deletedAt: number): void;
2454
2490
  /**
2455
2491
  * Get UID of the user who deleted the message.
2456
2492
  * @returns {number}
2457
- */
2493
+ */
2458
2494
  getDeletedBy(): string;
2459
2495
  /**
2460
2496
  * @param {string} deletedBy
2461
2497
  * Set UID of the user who deleted the message.
2462
- */
2498
+ */
2463
2499
  setDeletedBy(deletedBy: string): void;
2464
2500
  /**
2465
2501
  * Get the number of replies of the message.
@@ -2469,7 +2505,7 @@ export class BaseMessage implements Message {
2469
2505
  /**
2470
2506
  * @param {number} value
2471
2507
  * Set the number of replies of the message.
2472
- */
2508
+ */
2473
2509
  setReplyCount(value: number): void;
2474
2510
  /**
2475
2511
  * Get the raw JSON of the message.
@@ -2479,28 +2515,48 @@ export class BaseMessage implements Message {
2479
2515
  /**
2480
2516
  * @param {Object} rawMessage
2481
2517
  * Set the raw JSON of the message.
2482
- */
2518
+ */
2483
2519
  setRawMessage(rawMessage: Object): void;
2484
2520
  /**
2485
2521
  * @param {User[]} mentionedUsers
2486
2522
  * Set the array of mentioned users
2487
- */
2523
+ */
2488
2524
  setMentionedUsers(mentionedUsers: User[]): void;
2489
2525
  /**
2490
2526
  * Get the array of mentioned users
2491
2527
  * @returns
2492
- */
2528
+ */
2493
2529
  getMentionedUsers(): User[];
2494
2530
  /**
2495
2531
  * @param {boolean} hasMentionedMe
2496
2532
  * Method to set if the user was mentioned in the message
2497
- */
2533
+ */
2498
2534
  setHasMentionedMe(hasMentionedMe: boolean): void;
2499
2535
  /**
2500
2536
  * Method to check if the user was mentioned in the message
2501
2537
  * @returns
2502
- */
2538
+ */
2503
2539
  hasMentionedMe(): boolean;
2540
+ /**
2541
+ * Method to get data of the message.
2542
+ * @returns {Object}
2543
+ */
2544
+ getData(): any;
2545
+ /**
2546
+ * Method to set data of the message.
2547
+ * @param {Object} value
2548
+ */
2549
+ setData(value: object): void;
2550
+ /**
2551
+ * set the array of reactions in message
2552
+ * @returns {ReactionCount[]}
2553
+ */
2554
+ setReactions(reactions: any): ReactionCount[];
2555
+ /**
2556
+ * Get the array of reactions in message
2557
+ * @returns {ReactionCount[]}
2558
+ */
2559
+ getReactions(): ReactionCount[];
2504
2560
  }
2505
2561
 
2506
2562
  /**
@@ -2515,7 +2571,7 @@ export class TextMessage extends BaseMessage implements Message {
2515
2571
  };
2516
2572
  /** @private */ static readonly CATEGORY: string;
2517
2573
  private text?;
2518
- private data?;
2574
+ protected data?: any;
2519
2575
  private processedText?;
2520
2576
  private tags?;
2521
2577
  /**
@@ -2556,7 +2612,7 @@ export class TextMessage extends BaseMessage implements Message {
2556
2612
  * Method to set data of the message.
2557
2613
  * @param {Object} value
2558
2614
  */
2559
- setData(value: string): void;
2615
+ setData(value: any): void;
2560
2616
  /**
2561
2617
  * Method to get text of the message.
2562
2618
  * @returns {string}
@@ -2591,6 +2647,7 @@ export const constants: {
2591
2647
  export const DEFAULT_VALUES: {
2592
2648
  ZERO: number;
2593
2649
  MSGS_LIMIT: number;
2650
+ REACTIONS_LIMIT: number;
2594
2651
  MSGS_MAX_LIMIT: number;
2595
2652
  USERS_LIMIT: number;
2596
2653
  USERS_MAX_LIMIT: number;
@@ -2672,6 +2729,8 @@ export const ResponseConstants: {
2672
2729
  KEY_DATA: string;
2673
2730
  KEY_META: string;
2674
2731
  KEY_CURSOR: string;
2732
+ KEY_NEXT: string;
2733
+ KEY_PREVIOUS: string;
2675
2734
  KEY_ACTION: string;
2676
2735
  KEY_MESSAGE: string;
2677
2736
  KEY_ERROR: string;
@@ -2683,6 +2742,7 @@ export const ResponseConstants: {
2683
2742
  KEY_IDENTITY: string;
2684
2743
  KEY_SERVICE: string;
2685
2744
  KEY_ENTITIES: string;
2745
+ KEY_REACTIONS: string;
2686
2746
  KEY_ENTITITY: string;
2687
2747
  KEY_ENTITYTYPE: string;
2688
2748
  KEY_ATTACHMENTS: string;
@@ -3540,6 +3600,10 @@ export const CONNECTION_STATUS: {
3540
3600
  export const SESSION_STORE: {
3541
3601
  SESSION_ID: string;
3542
3602
  };
3603
+ export enum REACTION_ACTION {
3604
+ REACTION_ADDED = "message_reaction_added",
3605
+ REACTION_REMOVED = "message_reaction_removed"
3606
+ }
3543
3607
  export const API_ERROR_CODES: {
3544
3608
  AUTH_ERR_AUTH_TOKEN_NOT_FOUND: string;
3545
3609
  };
@@ -3842,6 +3906,15 @@ export class MessageListener {
3842
3906
  * This event is triggered when a interaction goal is completd .
3843
3907
  */
3844
3908
  onInteractionGoalCompleted?: Function;
3909
+ /**
3910
+ * This event is triggered when a reaction is added.
3911
+ */
3912
+ onMessageReactionAdded?: Function; /**
3913
+
3914
+ /**
3915
+ * This event is triggered when a reaction is removed.
3916
+ */
3917
+ onMessageReactionRemoved?: Function;
3845
3918
  constructor(...args: any[]);
3846
3919
  }
3847
3920
  export class CallListener {
@@ -4383,6 +4456,7 @@ export class Action extends BaseMessage implements Message {
4383
4456
  TYPE_MESSAGE_DELETED: string;
4384
4457
  TYPE_MEMBER_ADDED: string;
4385
4458
  };
4459
+ protected data?: any;
4386
4460
  protected actionBy: User | Group | BaseMessage;
4387
4461
  protected actionFor: User | Group | BaseMessage;
4388
4462
  protected actionOn: User | Group | BaseMessage;
@@ -5073,6 +5147,7 @@ export class TypingIndicator {
5073
5147
  * @module CustomMessage
5074
5148
  */
5075
5149
  export class CustomMessage extends BaseMessage implements Message {
5150
+ protected data?: Object;
5076
5151
  constructor(...args: any[]);
5077
5152
  /**
5078
5153
  * Method to get custom data of the message.
@@ -5381,6 +5456,7 @@ export class CometChatHelper {
5381
5456
  * @memberof CometChat
5382
5457
  */
5383
5458
  static getConversationFromMessage(message: TextMessage | MediaMessage | CustomMessage | InteractiveMessage | any): Promise<Conversation>;
5459
+ static updateMessageWithReactionInfo(baseMessage: BaseMessage, messageReaction: MessageReaction, action: REACTION_ACTION): Promise<BaseMessage | null>;
5384
5460
  }
5385
5461
 
5386
5462
  /**
@@ -5393,13 +5469,35 @@ export class Conversation {
5393
5469
  protected lastMessage: TextMessage | MediaMessage | CustomMessage | any;
5394
5470
  protected conversationWith: User | Group;
5395
5471
  protected unreadMessageCount: number;
5472
+ protected unreadMentionsCount: number;
5473
+ protected lastReadMessageId: string;
5396
5474
  protected tags: Array<String>;
5397
- constructor(conversationId: string, conversationType: string, lastMessage: TextMessage | MediaMessage | CustomMessage | any, conversationWith: User | Group, unreadMessageCount: number, tags: Array<String>);
5475
+ constructor(conversationId: string, conversationType: string, lastMessage: TextMessage | MediaMessage | CustomMessage | any, conversationWith: User | Group, unreadMessageCount: number, tags: Array<String>, unreadMentionsCount: number | any, lastReadMessageId: string | any);
5398
5476
  /**
5399
5477
  * Method to set conversation ID of the conversation.
5400
5478
  * @param {string} conversationId
5401
5479
  */
5402
5480
  setConversationId(conversationId: string): void;
5481
+ /**
5482
+ * Method to get unreadMentionsCount of the conversation.
5483
+ * @returns {number}
5484
+ */
5485
+ getUnreadMentionsCount(): number;
5486
+ /**
5487
+ * Method to set unreadMentionsCount of the conversation.
5488
+ * @param {number}
5489
+ */
5490
+ setUnreadMentionsCount(count: number): void;
5491
+ /**
5492
+ * Method to get lastReadMessageId of the conversation.
5493
+ * @returns {string}
5494
+ */
5495
+ getLastReadMessageId(): string;
5496
+ /**
5497
+ * Method to set lastReadMessageId of the conversation.
5498
+ * @param {string}
5499
+ */
5500
+ setLastReadMessageId(id: string): void;
5403
5501
  /**
5404
5502
  * Method to set conversation type of the conversation.
5405
5503
  * @param {string} conversationId
@@ -5965,6 +6063,7 @@ export class MediaDevice {
5965
6063
  }
5966
6064
 
5967
6065
  export class TransientMessage {
6066
+ protected data: any;
5968
6067
  constructor(receiverId: string, receiverType: string, data: any);
5969
6068
  /**
5970
6069
  * Method to get receiverID of the transient message.
@@ -6035,7 +6134,7 @@ export class InteractiveMessage extends BaseMessage implements Message {
6035
6134
  };
6036
6135
  private interactiveData;
6037
6136
  private interactionGoal;
6038
- private data?;
6137
+ protected data?: Object;
6039
6138
  private interactions?;
6040
6139
  private tags?;
6041
6140
  private allowSenderInteraction?;
@@ -6227,6 +6326,47 @@ export class InteractionReceipt {
6227
6326
  setInteractions(interactions: Array<Interaction>): void;
6228
6327
  }
6229
6328
 
6329
+ export class ReactionRequest {
6330
+ constructor(builder?: ReactionRequestBuilder);
6331
+ /**
6332
+ * Get list of next reactions list based on the parameters specified in ReactionRequestBuilder class. The Developer need to call this method repeatedly using the same object of ReactionRequest class to get paginated list of reactions.
6333
+ * @returns {Promise<MessageReaction[] | []>}
6334
+ */
6335
+ fetchNext(): Promise<MessageReaction[] | []>;
6336
+ /**
6337
+ * Get list of previous reactions list based on the parameters specified in ReactionRequestBuilder class. The Developer need to call this method repeatedly using the same object of ReactionRequest class to get paginated list of reactions.
6338
+ * @returns {Promise<MessageReaction[] | []>}
6339
+ */
6340
+ fetchPrevious(): Promise<MessageReaction[] | []>;
6341
+ }
6342
+ export class ReactionRequestBuilder {
6343
+ /** @private */ limit?: number;
6344
+ /** @private */ msgId: number;
6345
+ /** @private */ reaction?: string;
6346
+ /**
6347
+ * A method to set limit for the number of entries returned in a single iteration. A maximum of 100 entries can fetched in a single iteration.
6348
+ * @param {number} limit
6349
+ * @returns
6350
+ */
6351
+ setLimit(limit: number): this;
6352
+ /**
6353
+ * A method to set message ID for which reactions needed to fetch.
6354
+ * @param {number} id
6355
+ * @returns
6356
+ */
6357
+ setMessageId(id?: number): this;
6358
+ /**
6359
+ * A method to fetch list of MessageReaction for a specific reaction.
6360
+ * @returns
6361
+ */
6362
+ setReaction(reaction: string): this;
6363
+ /**
6364
+ * This method will return an object of the ReactionRequest class.
6365
+ * @returns {ReactionRequest}
6366
+ */
6367
+ build(): ReactionRequest;
6368
+ }
6369
+
6230
6370
  /**
6231
6371
  *
6232
6372
  *
@@ -6331,6 +6471,55 @@ export class MessageReceipt {
6331
6471
  setReceiptType(receiptType?: string): void;
6332
6472
  }
6333
6473
 
6474
+ export class ReactionCount {
6475
+ reaction: string;
6476
+ count: number;
6477
+ reactedByMe?: boolean;
6478
+ constructor(object: any);
6479
+ /**
6480
+ * Method to get reacted reaction.
6481
+ * @returns {string}
6482
+ */
6483
+ getReaction(): string;
6484
+ /**
6485
+ * Method to set reacted reaction.
6486
+ */
6487
+ setReaction(reaction: string): void;
6488
+ /**
6489
+ * Method to get no of users reacted with a reaction.
6490
+ * @returns {number}
6491
+ */
6492
+ getCount(): number;
6493
+ /**
6494
+ * Method to set no of users reacted with a reaction.
6495
+ */
6496
+ setCount(count: number): void;
6497
+ /**
6498
+ * Method to get if loggedIn user reacted with the a reaction.
6499
+ * @returns {boolean}
6500
+ */
6501
+ getReactedByMe(): boolean;
6502
+ /**
6503
+ * Method to set if loggedIn user reacted with the a reaction.
6504
+ */
6505
+ setReactedByMe(reactedByMe: boolean): void;
6506
+ }
6507
+ export class MessageReaction {
6508
+ constructor(object: any);
6509
+ getReactionId(): string;
6510
+ setReactionId(id: string): void;
6511
+ getMessageId(): number | string;
6512
+ setMessageId(messageId: number | string): void;
6513
+ getReaction(): string;
6514
+ setReaction(reaction: string): void;
6515
+ getUid(): string;
6516
+ setUid(uid: string): void;
6517
+ getReactedAt(): number;
6518
+ setReactedAt(reactedAt: number): void;
6519
+ getReactedBy(): User;
6520
+ setReactedBy(reactedBy: User): void;
6521
+ }
6522
+
6334
6523
  export class RTCUser {
6335
6524
  constructor(uid: string);
6336
6525
  setUID(uid: string): void;