Skip to content

Conversation

@danxuliu
Copy link
Member

The audio encoder is initialized when the AudioRecorder component is mounted, and the store keeps track of whether the audio encoder was already initialized to not do it again.

However, the audio encoder was also unconditionally registered in the main components of the main and sidebar Talk UIs (ironically to also fix the duplicated registration :-P ), which caused a duplicated registration when the audio encoder was initialized (as the store did not "know" that it was already registered).

Due to all this the unconditional registration is removed (which also avoids registering the audio encoder when it will not be needed, like when the current user is a guest without upload permissions).

The audio encoder is initialized when the AudioRecorder component is
mounted, and the store keeps track of whether the audio encoder was
already initialized to not do it again.

However, the audio encoder was also unconditionally registered in the
main components of the main and sidebar Talk UIs, which caused a
duplicated registration when the audio encoder was initialized (as the
store did not "know" that it was already registered).

Due to all this the unconditional registration is removed (which also
avoids registering the audio encoder when it will not be needed, like
when the current user is a guest without upload permissions).

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu
Copy link
Member Author

/backport to stable22.1

Copy link
Member

@marcoambrosini marcoambrosini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for cleaning up after me :)

@nickvergessen nickvergessen merged commit b953ae0 into master Aug 20, 2021
@nickvergessen nickvergessen deleted the fix-duplicated-registration-of-audio-encoder branch August 20, 2021 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants