8036ce71b1
When validating tokens, the dummyUser created at the beginning is set with validated=true. This means there won't be the state change that used to occur from validated:false to validated:true (which detects the moment joined the meeting) , therefore the alert code that expects for this change won't run. To fix this for audio alerts, we now detect when user join by observing additions in Users's collection. This is actually good because we start observing this only once (in componentDidMount), differently we used to do, by calling this every time the tracker was activated. To distinguish between the user addition that initially populates user's collection from those that happens after user join (which are the ones we want), we store the initial state (at componentDidMount) and compare it with new additions. If the user added is present at the initial state, then it is an addition to populates the collection, otherwise this is a real user addition (happened after user joined the meeting) Partially fixes #11399 |
||
---|---|---|
.. | ||
.meteor | ||
client | ||
dev_local_deployment | ||
imports | ||
private | ||
public | ||
server | ||
tests | ||
.dockerignore | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
deploy_to_usr_share.sh | ||
docker-entrypoint.sh | ||
Dockerfile | ||
Dockerfile.dev | ||
package-lock.json | ||
package.json | ||
test-html5.sh | ||
TRANSIFEX_PULL_INSTRUCTIONS.md | ||
transifex.sh |