File upload in the profile

This commit is contained in:
yflory
2017-06-28 10:59:29 +02:00
parent 85d8eda847
commit 6c94605b9b
5 changed files with 38 additions and 9 deletions

View File

@@ -689,6 +689,15 @@ define([
})
.filter(function (x) { return x; });
// Get the avatar
var profile = store.getProfile();
if (profile) {
var profileChan = profile.edit ? hrefToHexChannelId('/profile/#' + profile.edit) : null;
if (profileChan) { list.push(profileChan); }
var avatarChan = profile.avatar ? hrefToHexChannelId(profile.avatar) : null;
if (avatarChan) { list.push(avatarChan); }
}
list.push(common.base64ToHex(userChannel));
list.sort();