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

Wrong avatar in 1-to-1 conversations when using multiple users from same instance #1794

Open
Ivansss opened this issue Sep 6, 2024 · 0 comments
Labels

Comments

@Ivansss
Copy link
Member

Ivansss commented Sep 6, 2024

Steps to reproduce

  1. Log in with User A in NC instance A
  2. Log in with User B in NC instance A
  3. Create a 1-to-1 conversation between User A and User B with User A

Expected behaviour

User A sees User B avatar in their 1-to-1 conversation
User B sees User A avatar in their 1-to-1 conversation

Actual behaviour

User A sees User B avatar in their 1-to-1 conversation
User B sees its own avatar in the 1-to-1 conversation with User A (since the same image cache is being used for every user in the app)

Possible solutions

  • Create different image downloaders for every user in the app
  • Do not cache 1-to-1 conversations' avatars (not ideal)

This might be considered an edge case since it's not common to have multiple users from the same instance in the app which have 1-to-1 conversations between them.

@Ivansss Ivansss added the bug label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant