feat: toggleChat command handler im Orchestrator

Made-with: Cursor
This commit is contained in:
ValueOn AG 2026-03-06 22:55:31 +01:00
parent 92f96bbc3e
commit 5192f2d8d4

View file

@ -1407,6 +1407,21 @@ export class BotOrchestrator {
case 'toggleTranscript':
await this._teamsActions.toggleTranscript(params.enable !== false);
break;
case 'toggleChat':
if (this._chatProcedure) {
if (params.enable !== false) {
this._chatProcedure.setBotJoinedAt(Date.now());
await this._chatProcedure.enableChatMonitoring();
await this._chatProcedure.subscribeToChatMessages();
this._logger.info('Chat monitoring enabled via command');
} else {
await this._chatProcedure.unsubscribe();
this._logger.info('Chat monitoring disabled via command');
}
} else {
this._logger.warn('toggleChat: no chat procedure');
}
break;
case 'toggleMic':
await this._teamsActions.toggleMic(params.enable !== false);
break;