Merge pull request #6203 from matrix-org/jryans/nested-reply-perf

Stop requesting null next replies from the server
pull/21833/head
J. Ryan Stinnett 2021-06-16 20:17:53 +01:00 committed by GitHub
commit ad3aefad35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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;