Fix avatar upload and use less2 everywhere in profile

This commit is contained in:
yflory
2017-10-31 11:11:29 +01:00
parent 7f9b21405b
commit e0f7df80b3
7 changed files with 59 additions and 52 deletions

View File

@@ -70,7 +70,7 @@ define([
var chanId = Cryptpad.hrefToHexChannelId(data);
Cryptpad.pinPads([chanId], function (e) {
if (e) { return void cb(e); }
Cryptpad.getProxy().profile.avatar = data.url;
Cryptpad.getProxy().profile.avatar = data;
Cryptpad.whenRealtimeSyncs(Cryptpad.getRealtime(), function () {
cb();
});