Add helper for thread root id in view source (#9632)
This commit is contained in:
@@ -167,6 +167,13 @@ export default class ViewSource extends React.Component<IProps, IState> {
|
||||
<CopyableText getTextToCopy={() => eventId} border={false}>
|
||||
{ _t("Event ID: %(eventId)s", { eventId }) }
|
||||
</CopyableText>
|
||||
{ mxEvent.threadRootId && (
|
||||
<CopyableText getTextToCopy={() => mxEvent.threadRootId!} border={false}>
|
||||
{ _t("Thread root ID: %(threadRootId)s", {
|
||||
threadRootId: mxEvent.threadRootId,
|
||||
}) }
|
||||
</CopyableText>
|
||||
) }
|
||||
</div>
|
||||
{ isEditing ? this.editSourceContent() : this.viewSourceContent() }
|
||||
{ !isEditing && canEdit && (
|
||||
|
||||
Reference in New Issue
Block a user