Ability to change the password of a pad
This commit is contained in:
@@ -1059,6 +1059,13 @@ define([
|
||||
};
|
||||
CpNfWorker.start(conf);
|
||||
};
|
||||
Store.leavePad = function (clientId, data, cb) {
|
||||
var channel = channels[data.channel];
|
||||
if (!channel || !channel.wc) { return void cb ({error: 'EINVAL'}); }
|
||||
channel.wc.leave();
|
||||
delete channels[data.channel];
|
||||
cb();
|
||||
};
|
||||
Store.sendPadMsg = function (clientId, data, cb) {
|
||||
var msg = data.msg;
|
||||
var channel = channels[data.channel];
|
||||
|
||||
@@ -67,6 +67,7 @@ define([
|
||||
// Pad
|
||||
SEND_PAD_MSG: Store.sendPadMsg,
|
||||
JOIN_PAD: Store.joinPad,
|
||||
LEAVE_PAD: Store.leavePad,
|
||||
GET_FULL_HISTORY: Store.getFullHistory,
|
||||
IS_NEW_CHANNEL: Store.isNewChannel,
|
||||
// Drive
|
||||
|
||||
@@ -41,6 +41,7 @@ define([
|
||||
if (!attr || !attr.trim()) { return void cb("E_INVAL_ATTR"); }
|
||||
var data = exp.getFileData(id);
|
||||
data[attr] = clone(value);
|
||||
console.log(data);
|
||||
cb(null);
|
||||
};
|
||||
exp.getPadAttribute = function (href, attr, cb) {
|
||||
|
||||
Reference in New Issue
Block a user