zoff99 / ToxAndroidRefImpl

Tox Reference implementation for Android
GNU General Public License v3.0
274 stars 53 forks source link

New contact's Avatar Icon fails to load in list until restart #317

Open zellchristensen opened 2 years ago

zellchristensen commented 2 years ago

Describe the bug After adding a new contact, their avatar icon is fetched and displayed properly in the chat history (after they send a message) but never appears in the main list of contacts until the app is closed and restarted.

To Reproduce Steps to reproduce the behavior:

  1. Add a new contact that has an avatar icon set on whatever client they use. I added via QR code to a qTox desktop user.
  2. Receive a message from them to confirm their icon is showing.
  3. Go back to the contacts list.
  4. No avatar icon displayed next to their name.

Expected behavior Icon is displayed when fetched.

Your system information:

Add screenshots, if possible

Additional context If a contact who's icon was loaded is deleted (on both sides), and then re-added, the icon displays properly in the main list of contacts but fails to display in the chat history. I thought it might have been cached at first.

Also after deleting and re-adding, they appear as offline (Large red dot) but messages can still be exchanged.

Restarting the app after deleting and re-adding makes the icon not show up at all in the main contact list or chat history and subsequent app restarts don't help.

Deleting all avatar icons from the maintenance menu causes all icons in chat history to be cleared, but the icons remain on the main contacts list until app restart.

zoff99 commented 2 years ago

@zellchristensen can you help fix the bug?

zellchristensen commented 2 years ago

How can I help? I'm not too familiar with coding itself.