Enable avatars in pad2

This commit is contained in:
yflory
2017-08-21 12:01:38 +02:00
parent f88a6f63fe
commit 30aef71603
7 changed files with 130 additions and 10 deletions

View File

@@ -84,6 +84,12 @@ define([
}
});
sframeChan.on('Q_ANON_RPC_MESSAGE', function (data, cb) {
Cryptpad.anonRpcMsg(data.msg, data.content, function (err, response) {
cb({error: err, response: response});
});
});
sframeChan.on('Q_SET_PAD_TITLE_IN_DRIVE', function (newTitle, cb) {
Cryptpad.renamePad(newTitle, undefined, function (err) {
if (err) { cb('ERROR'); } else { cb(); }
@@ -126,4 +132,4 @@ define([
});
});
});
});
});