webxdc / webxdc_docs

Documentation for Webxdc
https://docs.webxdc.org
10 stars 4 forks source link

Access to user avatars? #35

Closed WofWca closed 1 year ago

WofWca commented 1 year ago

We now have selfName and selfAddr. I thought that avatars would also make sense.

I remember we talked about replacing selfName and selfAddr with some faceless UUIDs. I think it needs to be reconsidered.

Simon-Laux commented 1 year ago

I remember we talked about replacing selfName and selfAddr with some faceless UUIDs. I think it needs to be reconsidered.

replacing email address makes sense, also we should provide sender information with each update outside of the payload (put there by core):

{
 payload:{...},
 author: { id: /* local contact id hashed together with chat id */, displayname: string}
}

For avatars we can then have a virtual directory (served by core) inside of the webxdc that serves the avatar pictures:

/webxdc-avatars/{author.id}.jpg
singpolyma commented 1 year ago

Avatars and display names can both change over time. It might make sense to have a webxdc.getUserProfile(author.id) call that can return relevant display name / virtual path / anything else

WofWca commented 1 year ago

Moved to https://support.delta.chat/t/webxdc-selfavatar-access-to-user-avatars/2734?u=wofwca