added another comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
407be88c92
commit
c00c52e537
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,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
|
// 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);
|
await this.context.matrixClient.getEventTimeline(room.getUnfilteredTimelineSet(), eventId);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// if it fails, capture the error and dump it because it'll make findEventById return false, which
|
||||||
|
// captures a superset of errors.
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return room.findEventById(eventId);
|
return room.findEventById(eventId);
|
||||||
|
|
Loading…
Reference in a new issue