element-hq / dendrite

Dendrite is a second-generation Matrix homeserver written in Go!
https://element-hq.github.io/dendrite/
GNU Affero General Public License v3.0
11 stars 3 forks source link

Bridged profile avatars are not redownloaded/reuploaded after purging the media database or deleting the media files #3179

Closed matrixbot closed 2 weeks ago

matrixbot commented 2 weeks ago

This issue was originally created by @Xinayder at https://github.com/matrix-org/dendrite/issues/3179.

Background information

Description

Steps to reproduce

I run a local Matrix instance using Dendrite and I host a few Mautrix bridges for Instagram, Messenger and WhatsApp. If I understood correctly, the profiles are created locally on the homeserver, but after deleting the media folder, the avatars are not found, which is expected. However, even after deleting the mediaapi table, the avatars are still pointing to files that no longer exist.

The only way avatars get updated is if the social media profile updates their avatar on the respective social media.

Dendrite should try to redownload the avatars if they point to nonexistent media files.

matrixbot commented 2 weeks ago

This comment was originally posted by @S7evinK at https://github.com/matrix-org/dendrite/issues/3179#issuecomment-1693722494.

Closing, as this is not an issue with Dendrite. There is no "remote" we could re-download the avatars from, nor do we have a way to signal the bridge that we've "lost" the avatar so it can be uploaded again.

For others having the same issue - forcing the bridge to re-upload the avatars seems to work - https://github.com/mautrix/whatsapp/issues/644#issuecomment-1678937057