id

77

publisher

goffi@goffi.org/d08fc2c8-30c5-4081-bff7-2f0f733436e8

title
XEP-0054: retrieving the avatars
reporter
Adrien
created
17/06/2014, 17:21
updated
17/06/2014, 17:21
labels
Backend
type
bug
status
queued
priority
normal
milestone
0.7
severity
normal
body

Libervia's browser_side is using getEntityData first to retrieve an avatar when it's not in its own cache. This seems wrong because the entity data which are stored for libervia in the backend are not updated when a user change his profile picture (entity data are managed per profile). Instead we can directly call getCard (which is now done when getEntityData returns nothing) or eventually replace the call to getEntityData by the one of a new method which would look for the avatar in the self.avatars_cache of the plugin XEP-0054. This self.avatars_cache is kind of a shared cache for the avatars (stored in the database but updated instantly when we receive an avatar update). Generally this plugin could offer a more convenient method to directly return the avatar's path. Otherwise we need to deal with the cache and callbacks in each frontend that would use avatars. These changes could be done after actionResult is removed.

comments_uri
xmpp:pubsub.goffi.org?;node=urn%3Axmpp%3Amicroblog%3A0%3Acomments%2Forg.salut-a-toi.tickets%3A0_77

You are not logged. You need to log in to comment.