Skip to content
Commit b8d54947 authored by Daniel Calviño Sánchez's avatar Daniel Calviño Sánchez
Browse files

Fix duplicated registration of audio encoder



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: default avatarDaniel Calviño Sánchez <danxuliu@gmail.com>
parent 94c22ee7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment