mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-07-21 05:27:45 +00:00
feat(external_api) add event for chat updates (unread counter, open state)
This commit is contained in:
@@ -556,6 +556,21 @@ class API {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify external application (if API is enabled) that the chat state has been updated.
|
||||
*
|
||||
* @param {number} unreadCount - The unread messages counter.
|
||||
* @param {boolean} isOpen - True if the chat panel is open.
|
||||
* @returns {void}
|
||||
*/
|
||||
notifyChatUpdated(unreadCount: number, isOpen: boolean) {
|
||||
this._sendEvent({
|
||||
name: 'chat-updated',
|
||||
unreadCount,
|
||||
isOpen
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify external application (if API is enabled) that message was sent.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user