mirror of https://github.com/vector-im/riot-web
Merge pull request #6203 from matrix-org/jryans/nested-reply-perf
Stop requesting null next replies from the serverpull/21833/head
commit
ad3aefad35
|
@ -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 New Issue