chat: Move .etherpad import/export handling to chat.js

This commit is contained in:
Richard Hansen 2022-05-06 02:45:28 -04:00
parent bc06ef87bb
commit 310a371234
4 changed files with 34 additions and 2 deletions

View file

@ -50,7 +50,6 @@ exports.getPadRaw = async (padId, readOnlyId) => {
})()];
}
for (let i = 0; i <= pad.head; ++i) yield [`${dstPfx}:revs:${i}`, pad.getRevision(i)];
for (let i = 0; i <= pad.chatHead; ++i) yield [`${dstPfx}:chat:${i}`, pad.getChatMessage(i)];
for (const gen of pluginRecords) yield* gen;
})();
const data = {[dstPfx]: pad};