Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Access to user avatars? #35

Closed
WofWca opened this issue Mar 2, 2023 · 3 comments
Closed

Access to user avatars? #35

WofWca opened this issue Mar 2, 2023 · 3 comments
Labels
api-change-move-to-forum this issue proposes an api change which belong in the forum, so it should be summarised an put there

Comments

@WofWca
Copy link
Contributor

WofWca commented Mar 2, 2023

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
Copy link
Collaborator

Simon-Laux commented Mar 2, 2023

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
Copy link

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

@Simon-Laux Simon-Laux added the api-change-move-to-forum this issue proposes an api change which belong in the forum, so it should be summarised an put there label Sep 21, 2023
@WofWca
Copy link
Contributor Author

WofWca commented Sep 22, 2023

@WofWca WofWca closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api-change-move-to-forum this issue proposes an api change which belong in the forum, so it should be summarised an put there
Projects
None yet
Development

No branches or pull requests

3 participants