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

Append server type to lazy column index to make it unique #1187

Conversation

davotoula
Copy link
Collaborator

Fix for #1186

Currently the app allows entering same media server as nip96 and blossom.

The server name is used as key for LazyColumn and this breaks LazyColumn as it doesn't allow duplicate key.

This fix prepends server type before serve name when used as key which makes it unique. This will prevent crash for any users that have already entered duplicate media servers.

Going forward do we want allow same media server as both nip96 and blossom or should we prevent it?

If we allow a media server as both nip96 and blossom should we make that clear on upload (not part of this pull request):
Screenshot_20241122_164540

@davotoula davotoula marked this pull request as draft November 22, 2024 15:54
@vitorpamplona
Copy link
Owner

this won't work. I am taking a look right now

@davotoula
Copy link
Collaborator Author

It resolved the issue but maybe there is a better more complete fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants