-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(BrowserStorage): don't generate empty entries in BrowserStorage #11718
Conversation
Is it a bug or expected behavior? |
Found only one setup here: spreed/src/utils/webrtc/models/LocalMediaModel.js Lines 198 to 204 in cc426e5
should be set change on each |
With this PR those methods use 2 tokens - from an argument and from context. It is not clear for me, what is the difference between them, when one should be used and when the other. If the token from the context is wrong, but it is not supposed to be wrong, we probably should find why it is wrong and fix it. If it cannot be correct in this case, or we probably should get rid of it at lease in these operations. But I'd avoid intermediate solution for further support. |
a6a8168
to
285a229
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch with the undefined token! :-)
Unfortunately I had no time to find the steps to reproduce that issue (although I saw it in the past), but code looks good 👍 A little comment either in the code or in the commit would be nice for future reference.
Independently of that I left some minor comments.
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
285a229
to
4a7b43b
Compare
4a7b43b
to
150005c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaner now, thanks for the investigation! 💙
Agree with Daniel's nitpicks.
- set token at localMediaModel on call start - add check for current token in settings store Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
150005c
to
e775fb1
Compare
☑️ Resolves
'virtualBackgroundType_'
in local storage without defined keythis.get('token')
sometime returns nothing, as webrtc isn't always initialising it🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏡 After
reset-virtual-bg.webm
🚧 Tasks
🏁 Checklist