processors(rtvi): update initial config when sending bot-ready message

This commit is contained in:
Aleix Conchillo Flaqué
2024-08-19 09:32:27 -07:00
parent c9f1469b41
commit 042115a6bb

View File

@@ -380,7 +380,6 @@ class RTVIProcessor(FrameProcessor):
async def _start(self, frame: StartFrame):
self._pipeline_started = True
await self._update_config(self._config)
await self._maybe_send_bot_ready()
async def _stop(self, frame: EndFrame):
@@ -581,6 +580,7 @@ class RTVIProcessor(FrameProcessor):
async def _maybe_send_bot_ready(self):
if self._pipeline_started and self._first_participant_joined:
await self._send_bot_ready()
await self._update_config(self._config)
async def _send_bot_ready(self):
if not self._params.send_bot_ready: