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

[Release] Stop requesting null next replies from the server
This commit is contained in:
J. Ryan Stinnett 2021-06-17 15:04:36 +01:00 committed by GitHub
commit 1fcfec6a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;