Closed AndrewFerr closed 3 months ago
Probably better to just wait an hour for avatars to update 🤔
A compromise could be to add a bridge config option to set the profile expiry time.
The situation I wanted to avoid is someone changing their Signal avatar a few times & a Matrix user being unaware of it until later.
Yeah making it configurable is probably fine
Actually, a better way is to fetch the profile when receiving a SyncMessage
with a FetchLatest
indicating a profile change. Then the existing fetch can remain as-is, but used as a safety check in case an on-demand was missed.
Pushed the config change for posterity, but abandoning this in favour of #482
It's been pointed out that the SyncMessage
for profile changes is only for logged-in users, so it's not a full solution as I had thought.
Still, I'll leave this PR closed because reducing the profile expiry time incurs the risk of doing a lot of extra fetches, as it would trigger a fetch on any new Signal message (plus some other Signal events) that happen after the expiry time, even if the profile hasn't changed.
For #476