Skip to content
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

[MM-63274] Use device label instead of id to save defaults #979

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

streamer45
Copy link
Collaborator

Summary

I noticed that every time I replug my camera or restart the laptop, my default devices are reset. This is because the device IDs are not consistent across these events.

What remains stable, though, is the device label, so I am opting to use this instead.

I think there's a small chance we could get more than one device with the same label, so we still support strict ID matching as a fallback in such cases.

Ticket Link

https://mattermost.atlassian.net/browse/MM-63274

@streamer45 streamer45 added the 2: Dev Review Requires review by a core committer label Feb 25, 2025
@streamer45 streamer45 added this to the v1.6.0 (MM v10.7) milestone Feb 25, 2025
@streamer45 streamer45 requested a review from cpoile February 25, 2025 22:10
@streamer45 streamer45 self-assigned this Feb 25, 2025
Copy link
Member

@cpoile cpoile left a comment

Choose a reason for hiding this comment

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

Cool, looks clean, thanks!

@cpoile cpoile added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Feb 27, 2025
@streamer45 streamer45 merged commit c937ca9 into main Mar 4, 2025
21 checks passed
@streamer45 streamer45 deleted the MM-63274 branch March 4, 2025 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants