fix(voice): report actual cctv toggle results

This commit is contained in:
manjunath committed 2026-10-18 11:13:30 +05:30
1 parent 1df2a272cf
commit 9b1967a59e
3 files changed
+501

No files matched your search

+12
View File
@@ -1153,6 +1153,18 @@ export function createGevActionRunner({
}
if (name === 'control_cctv') {
const action = String(args.action || '').toLowerCase();
if (
(action === 'enable' || action === 'disable') &&
dataManager.layers.get('cctv')?.module
) {
const result = await runGevAction(
'set_layer_visibility',
{ layerId: 'cctv', enabled: action === 'enable' },
runOptions,
);
return { ...result, action: 'control_cctv' };
}
return controlCctv(dataManager, args, styleManager);
}