processors(rtvi): update initial config when sending bot-ready message
This commit is contained in:
@@ -380,7 +380,6 @@ class RTVIProcessor(FrameProcessor):
|
|||||||
|
|
||||||
async def _start(self, frame: StartFrame):
|
async def _start(self, frame: StartFrame):
|
||||||
self._pipeline_started = True
|
self._pipeline_started = True
|
||||||
await self._update_config(self._config)
|
|
||||||
await self._maybe_send_bot_ready()
|
await self._maybe_send_bot_ready()
|
||||||
|
|
||||||
async def _stop(self, frame: EndFrame):
|
async def _stop(self, frame: EndFrame):
|
||||||
@@ -581,6 +580,7 @@ class RTVIProcessor(FrameProcessor):
|
|||||||
async def _maybe_send_bot_ready(self):
|
async def _maybe_send_bot_ready(self):
|
||||||
if self._pipeline_started and self._first_participant_joined:
|
if self._pipeline_started and self._first_participant_joined:
|
||||||
await self._send_bot_ready()
|
await self._send_bot_ready()
|
||||||
|
await self._update_config(self._config)
|
||||||
|
|
||||||
async def _send_bot_ready(self):
|
async def _send_bot_ready(self):
|
||||||
if not self._params.send_bot_ready:
|
if not self._params.send_bot_ready:
|
||||||
|
|||||||
Reference in New Issue
Block a user