Shared folder history
This commit is contained in:
@@ -63,7 +63,8 @@ define([
|
||||
var sframeChan = common.getSframeChannel();
|
||||
|
||||
sframeChan.query('Q_GET_HISTORY_RANGE', {
|
||||
lastKnownHash: lastKnownHash
|
||||
lastKnownHash: lastKnownHash,
|
||||
sharedFolder: config.sharedFolder
|
||||
}, function (err, data) {
|
||||
if (err) { return void console.error(err); }
|
||||
if (!Array.isArray(data.messages)) { return void console.error('Not an array!'); }
|
||||
@@ -313,6 +314,10 @@ define([
|
||||
$(window).trigger('resize');
|
||||
};
|
||||
|
||||
if (config.onOpen) {
|
||||
config.onOpen();
|
||||
}
|
||||
|
||||
// Load all the history messages into a new chainpad object
|
||||
loadMoreHistory(config, common, function (err, newRt, isFull) {
|
||||
History.readOnly = common.getMetadataMgr().getPrivateData().readOnly;
|
||||
|
||||
Reference in New Issue
Block a user