mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Refactor audio notification helper (#6148)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
import { IFrameHelper } from 'widget/helpers/utils';
|
||||
|
||||
export const playNewMessageNotificationInWidget = () => {
|
||||
IFrameHelper.sendMessage({ event: 'playAudio' });
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import BaseActionCableConnector from '../../shared/helpers/BaseActionCableConnector';
|
||||
import { playNewMessageNotificationInWidget } from 'shared/helpers/AudioNotificationHelper';
|
||||
import { playNewMessageNotificationInWidget } from 'widget/helpers/WidgetAudioNotificationHelper';
|
||||
import { ON_AGENT_MESSAGE_RECEIVED } from '../constants/widgetBusEvents';
|
||||
|
||||
class ActionCableConnector extends BaseActionCableConnector {
|
||||
|
||||
Reference in New Issue
Block a user