Fixup some TODOs
This commit is contained in:
@@ -107,12 +107,7 @@ async function onChangeFallbackEmail(currentFallbackEmail) {
|
||||
|
||||
async function onAvatarChanged(file) {
|
||||
await profileModel.setAvatar(file);
|
||||
|
||||
// TODO we somehow need to do this globally
|
||||
// invalidate and refresh profile avatar url
|
||||
const u = new URL(user.value.avatarUrl);
|
||||
u.searchParams.set('ts', Date.now());
|
||||
user.value.avatarUrl = u.toString();
|
||||
await refreshProfile();
|
||||
}
|
||||
|
||||
// Password changes
|
||||
|
||||
Reference in New Issue
Block a user