mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
update and improve comments
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
4c08c51044
commit
8fa56f8c9a
@ -24,14 +24,14 @@ import {MatrixEvent} from 'matrix-js-sdk';
|
|||||||
import {makeUserPermalink} from "../../../matrix-to";
|
import {makeUserPermalink} from "../../../matrix-to";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
|
|
||||||
// This component does no cycle detection, simply because the only way to make such a cycle
|
// This component does no cycle detection, simply because the only way to make such a cycle would be to
|
||||||
// would be to craft event_id's, using a custom homeserver; even then the impact would be low
|
// craft event_id's, using a homeserver that generates predictable event IDs; even then the impact would
|
||||||
// as each event being loaded (after the first) is triggered by an explicit user action.
|
// be low as each event being loaded (after the first) is triggered by an explicit user action.
|
||||||
export default class Reply extends React.Component {
|
export default class Reply extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
// The parent event
|
// the latest event in this chain of replies
|
||||||
parentEv: PropTypes.instanceOf(MatrixEvent),
|
parentEv: PropTypes.instanceOf(MatrixEvent),
|
||||||
|
// called when the preview's contents has loaded
|
||||||
onWidgetLoad: PropTypes.func.isRequired,
|
onWidgetLoad: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user