@@ -3766,6 +3766,7 @@ export class Group {
37663766 private joinedAt ;
37673767 private membersCount ;
37683768 private tags ;
3769+ private isBanned ;
37693770 /**
37703771 * Creates an instance of Group.
37713772 * @param {string } guid
@@ -3931,6 +3932,11 @@ export class Group {
39313932 * @returns {string[] }
39323933 */
39333934 getTags ( ) : Array < String > ;
3935+ /**
3936+ * Method to check if the logged-in user is banned from the group or not.
3937+ * @returns {boolean } status of the logged-in user as banned or not.
3938+ */
3939+ isBannedFromGroup ( ) : boolean ;
39343940}
39353941
39363942export class MessageListener {
@@ -5218,6 +5224,46 @@ export class TypingIndicator {
52185224export class CustomMessage extends BaseMessage implements Message {
52195225 protected data ?: Object ;
52205226 constructor ( ...args : any [ ] ) ;
5227+ /**
5228+ * Retrieves the preview text for a custom message to be displayed in the Conversation List.
5229+ * This method allows for a textual representation of the custom message that can be used
5230+ * as a conversation snippet or preview, enhancing the user experience by providing context.
5231+ * @returns {string } The text to display as the conversation preview.
5232+ */
5233+ getConversationText ( ) : string ;
5234+ /**
5235+ * Sets the preview text for a custom message to be displayed in the Conversation List.
5236+ * This method allows for a textual representation of the custom message that can be used
5237+ * as a conversation snippet or preview, enhancing the user experience by providing context.
5238+ * @param {string } text The text to set as the conversation preview.
5239+ */
5240+ setConversationText ( text : string ) : void ;
5241+ /**
5242+ * Determines whether the custom message should be considered as the last message
5243+ * in the conversation, potentially changing the order of conversations.
5244+ * This method indicates if sending a custom message will update the conversation's last message,
5245+ * which may affect the conversation's position in the list based on the sorting order.
5246+ * @returns {boolean } A boolean value indicating whether sending the custom message triggers an update
5247+ * to the last message of the conversation, potentially altering the conversation order.
5248+ */
5249+ willUpdateConversation ( ) : boolean ;
5250+ /**
5251+ * Set the flag to determine if the conversation should be updated.
5252+ * @param {boolean } updateConversation The flag to set if the conversation should be updated.
5253+ */
5254+ shouldUpdateConversation ( updateConversation : boolean ) : void ;
5255+ /**
5256+ * Determines whether a push notification should be sent for the custom message.
5257+ * This method checks if the current custom message configuration specifies that a push notification
5258+ * is warranted when the message is sent.
5259+ * @returns {boolean } A boolean value indicating whether to send a push notification for the custom message.
5260+ */
5261+ willSendNotification ( ) : boolean ;
5262+ /**
5263+ * Set the flag to determine if a notification should be sent.
5264+ * @param {boolean } sendNotification The flag to set if a notification should be sent.
5265+ */
5266+ shouldSendNotification ( sendNotification : boolean ) : void ;
52215267 /**
52225268 * Method to get custom data of the message.
52235269 * @returns {Object }
0 commit comments