Use updated createThread method (#7670)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user