mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Merge pull request #6203 from matrix-org/jryans/nested-reply-perf
Stop requesting null next replies from the server
This commit is contained in:
commit
ad3aefad35
1 changed files with 1 additions and 0 deletions
|
@ -297,6 +297,7 @@ export default class ReplyThread extends React.Component {
|
|||
}
|
||||
|
||||
async getEvent(eventId) {
|
||||
if (!eventId) return null;
|
||||
const event = this.room.findEventById(eventId);
|
||||
if (event) return event;
|
||||
|
||||
|
|
Loading…
Reference in a new issue