Use updated createThread method (#7670)
This commit is contained in:
parent
3e1a5f7021
commit
0e36f91d76
4 changed files with 43 additions and 10 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue