Use updated createThread method (#7670)

This commit is contained in:
Germain 2022-02-01 08:58:45 +00:00 committed by GitHub
parent 3e1a5f7021
commit 0e36f91d76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 43 additions and 10 deletions

View file

@ -407,7 +407,7 @@ export default class EventTile extends React.Component<IProps, IState> {
thread,
threadReplyCount: thread?.length,
threadLastReply: thread?.lastReply(),
threadLastReply: thread?.replyToEvent,
};
// don't do RR animations until we are mounted
@ -561,7 +561,7 @@ export default class EventTile extends React.Component<IProps, IState> {
}
this.setState({
threadLastReply: thread?.lastReply(),
threadLastReply: thread?.replyToEvent,
threadReplyCount: thread?.length,
thread,
});
@ -1290,7 +1290,7 @@ export default class EventTile extends React.Component<IProps, IState> {
// Thread panel shows the timestamp of the last reply in that thread
const ts = this.props.tileShape !== TileShape.ThreadPanel
? this.props.mxEvent.getTs()
: thread?.lastReply().getTs();
: thread?.replyToEvent.getTs();
const messageTimestamp = <MessageTimestamp
showRelative={this.props.tileShape === TileShape.ThreadPanel}