mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-26 07:11:00 -05:00
fix: apply the Voice mode button's checks when Voice Mode is opened from the URL (#31826)
This commit is contained in:
1 file changed
+14
@@ -2060,6 +2060,20 @@
|
||||
//////////////////////////
|
||||
|
||||
const openCallOverlay = () => {
|
||||
if (!($user?.role === 'admin' || ($user?.permissions?.chat?.call ?? true))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedModels.length > 1) {
|
||||
toast.error($i18n.t('Select only one model to call'));
|
||||
return;
|
||||
}
|
||||
|
||||
if ($config.audio.stt.engine === 'web') {
|
||||
toast.error($i18n.t('Call feature is not supported when using Web STT engine'));
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
showCallOverlay.set(true);
|
||||
showControls.set(true);
|
||||
|
||||
Reference in new issue
Block a user