mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(external_api) allow notifications to be configured
This commit is contained in:
@@ -40,20 +40,20 @@ MiddlewareRegistry.register(store => next => action => {
|
||||
}
|
||||
});
|
||||
conference.on(
|
||||
JitsiConferenceEvents.TALK_WHILE_MUTED, () => {
|
||||
const notification = showNotification({
|
||||
JitsiConferenceEvents.TALK_WHILE_MUTED, async () => {
|
||||
const notification = await dispatch(showNotification({
|
||||
titleKey: 'toolbar.talkWhileMutedPopup',
|
||||
customActionNameKey: 'notify.unmute',
|
||||
customActionHandler: () => dispatch(setAudioMuted(false))
|
||||
});
|
||||
|
||||
dispatch(notification);
|
||||
}));
|
||||
|
||||
dispatch(playSound(TALK_WHILE_MUTED_SOUND_ID));
|
||||
|
||||
// we store the last start muted notification id that we showed,
|
||||
// so we can hide it when unmuted mic is detected
|
||||
dispatch(setCurrentNotificationUid(notification.uid));
|
||||
if (notification) {
|
||||
// we store the last start muted notification id that we showed,
|
||||
// so we can hide it when unmuted mic is detected
|
||||
dispatch(setCurrentNotificationUid(notification.uid));
|
||||
}
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user