Store the pad to the drive when accepting ownership

This commit is contained in:
yflory
2019-09-02 17:42:30 +02:00
parent ed5671a548
commit d6b6b8f11f
2 changed files with 35 additions and 0 deletions

View File

@@ -476,6 +476,21 @@ define([
});
});
sframeChan.on('Q_ACCEPT_OWNERSHIP', function (data, cb) {
var data = {
password: data.password,
href: data.href,
channel: data.channel,
title: data.title,
owners: data.metadata.owners,
expire: data.metadata.expire,
forceSave: true
};
Cryptpad.setPadTitle(data, function (err) {
cb({error: err});
});
});
sframeChan.on('Q_IMPORT_MEDIATAG', function (obj, cb) {
var key = obj.key;
var channel = obj.channel;