mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 02:35:48 +03:00
add comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
5bb15b1002
commit
407be88c92
1 changed files with 2 additions and 0 deletions
|
@ -123,6 +123,8 @@ export default class ReplyThread extends React.Component {
|
||||||
if (event) return event;
|
if (event) return event;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
// ask the client to fetch the event we want using the context API, only interface to do so is to ask
|
||||||
|
// 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) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue