bigbluebutton / bigbluebutton-html-plugin-sdk

BigBlueButton Plugin SDK
GNU Lesser General Public License v3.0
7 stars 5 forks source link

Data consumption - useLoadedChatMessages #27

Closed TiagoJacobs closed 9 months ago

TiagoJacobs commented 11 months ago

This data consumption hook will allow the plugin to get all the currently loaded chat messages (of the focused chat).

This is meant to allow a plugin to observe the chat messages of current chat and take action based on it.

Example actions:

Sample implementation:

PluginApi.useLoadedChatMessages( (chatMsg) => {
    if(chatMsg.content.indexOf("Hello") != -1) alert(...);
})