Finish JSON export implementation

This commit is contained in:
Jaiwanth 2021-06-24 18:19:12 +05:30
parent 4bfac11911
commit 112dfa2b96
6 changed files with 138 additions and 16 deletions

View file

@ -84,12 +84,12 @@ export default class RoomHeader extends React.Component {
_exportConversationalHistory = async () => {
await exportConversationalHistory(
this.props.room,
exportFormats.HTML,
exportFormats.JSON,
exportTypes.START_DATE,
{
startDate: parseInt(new Date("2021.05.20").getTime().toFixed(0)),
attachmentsIncluded: true,
maxSize: 7 * 1024 * 1024, // 3 MB
attachmentsIncluded: false,
maxSize: 7 * 1024 * 1024, // 7 MB
},
);
}