mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
update comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
41af9f7a96
commit
bbce6eea5b
1 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ export default class ReplyThread extends React.Component {
|
|||
// for a timeline with that event, but once it is loaded we can use findEventById to look up the ev map
|
||||
await this.context.matrixClient.getEventTimeline(room.getUnfilteredTimelineSet(), eventId);
|
||||
} catch (e) {
|
||||
// if it fails, capture the error and dump it because it'll make findEventById return false, which
|
||||
// captures a superset of errors.
|
||||
// if it fails catch the error and return early, there's no point trying to find the event in this case.
|
||||
// Return null as it is falsey and thus should be treated as an error (as the event cannot be resolved).
|
||||
return null;
|
||||
}
|
||||
return room.findEventById(eventId);
|
||||
|
|
Loading…
Reference in a new issue