MCPcopy Index your code
hub / github.com/OpenSIST/OpenSIST.github.io / setAvatarID

Function setAvatarID

src/Data/UserData.js:131–139  ·  view source on GitHub ↗
(avatarId)

Source from the content-addressed store, hash-verified

129}
130
131export async function setAvatarID(avatarId) {
132 if (!avatarId) {
133 return;
134 }
135 const displayName = await getDisplayName();
136 const metadata = await getMetadata(displayName);
137 await setMetadata({...metadata, Avatar: avatarId}, displayName);
138
139}
140
141export async function getAvatar(avatarId, displayName = null, isRefresh = false, {priority = FOREGROUND_PRIORITY} = {}) {
142 if (!avatarId || avatarId === '') {

Callers 1

uploadAvatarFunction · 0.85

Calls 3

getDisplayNameFunction · 0.85
getMetadataFunction · 0.85
setMetadataFunction · 0.85

Tested by

no test coverage detected