The issue happens only when the number of connected sessions
becomes greater that the total number of colors.
The solution is: instead of picking black background we use
the default one.
This PR also improves performance of the presence related
react components.