Hidden hash for files

This commit is contained in:
yflory
2020-01-27 15:45:57 +01:00
parent 7b9f86157e
commit 7a02b074b7
5 changed files with 67 additions and 36 deletions

View File

@@ -1208,6 +1208,7 @@ define([
Store.getPadDataFromChannel = function (clientId, obj, cb) {
var channel = obj.channel;
var edit = obj.edit;
var isFile = obj.file;
var res;
var viewRes;
getAllStores().some(function (s) {
@@ -1217,7 +1218,7 @@ define([
if (!pad || !pad.data) { return; }
var data = pad.data;
// We've found a match: return the value and stop the loops
if ((edit && data.href) || (!edit && data.roHref)) {
if ((edit && data.href) || (!edit && data.roHref) || isFile) {
res = data;
return true;
}