Implement exporting from a specific start date and fix few bugs
This commit is contained in:
parent
80e5d4cd77
commit
a1b614f2b3
6 changed files with 52 additions and 41 deletions
|
@ -432,7 +432,7 @@ export default class MImageBody extends React.Component {
|
|||
|
||||
// Overidden by MStickerBody
|
||||
wrapImage(contentUrl, children) {
|
||||
return <a href={contentUrl} onClick={this.onClick}>
|
||||
return <a href={contentUrl} target={this.props.forExport ? "__blank" : undefined} onClick={this.onClick}>
|
||||
{children}
|
||||
</a>;
|
||||
}
|
||||
|
|
|
@ -82,7 +82,12 @@ export default class RoomHeader extends React.Component {
|
|||
|
||||
|
||||
_exportConversationalHistory = async () => {
|
||||
await exportConversationalHistory(this.props.room, exportFormats.HTML, exportTypes.LAST_N_MESSAGES, 100);
|
||||
await exportConversationalHistory(
|
||||
this.props.room,
|
||||
exportFormats.HTML,
|
||||
exportTypes.START_DATE,
|
||||
{ startDate: parseInt(new Date("2021.05.20").getTime().toFixed(0)) },
|
||||
);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue