Skip to content

Commit

Permalink
fix: updated flag isChatAlreadyStarted as soon as the avatar isLoading
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepat0 committed Nov 11, 2024
1 parent 9d171dc commit 3332a93
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,14 @@ export function FullbodyAvatar({
if (!animationControllerRef.current) return;

if (currentBaseAction.action.startsWith('Loading')) {
animationControllerRef.current.updateIsChatAlreadyStarted(true);
animationControllerRef.current.transitionTo(
AnimationState.LOADING,
currentBaseAction.action
);
} else if (currentBaseAction.action.startsWith('Idle')) {
animationControllerRef.current.transitionTo(AnimationState.IDLE);
} else {
animationControllerRef.current.updateIsChatAlreadyStarted(true);
animationControllerRef.current.transitionTo(
AnimationState.EMOTION,
currentBaseAction.action
Expand Down

0 comments on commit 3332a93

Please sign in to comment.