Adding ability to listen to user types chat messages using WA.onChatMessage
This commit is contained in:
@@ -31,6 +31,9 @@ export class DiscussionManager {
|
||||
this.addMessage(chatEvent.author, chatEvent.message, false);
|
||||
this.showDiscussion();
|
||||
});
|
||||
this.onSendMessageCallback('iframe_listener', (message) => {
|
||||
iframeListener.sendUserInputChat(message);
|
||||
})
|
||||
}
|
||||
|
||||
private createDiscussPart(name: string) {
|
||||
|
||||
Reference in New Issue
Block a user