Fix burn after reading with onlyoffice

This commit is contained in:
yflory committed 2020-01-21 11:01:07 +01:00
1 parent dbb726e4ce
commit 4a4146f39d
5 files changed
+59 -31

No files matched your search

+4
View File
@@ -1395,6 +1395,10 @@ define([
Title.updateTitle(Title.defaultTitle);
}
if (metadataMgr.getPrivateData().burnAfterReading && content && content.channel) {
sframeChan.event('EV_BURN_PAD', content.channel);
}
openRtChannel(function () {
setMyId();
oldHashes = JSON.parse(JSON.stringify(content.hashes));
+2 -2
View File
@@ -64,8 +64,8 @@ define([
var owners, expire;
nThen(function (waitFor) {
if (Utils.rtConfig) {
owners = Utils.rtConfig.owners;
expire = Utils.rtConfig.expire;
owners = Utils.Util.find(Utils.rtConfig, ['metadata', 'owners']);
expire = Utils.Util.find(Utils.rtConfig, ['metadata', 'expire']);
return;
}
Cryptpad.getPadAttribute('owners', waitFor(function (err, res) {