Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Add helper for thread root id in view source (#9632)
Browse files Browse the repository at this point in the history
  • Loading branch information
Germain authored Nov 28, 2022
1 parent e71a757 commit ded031a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/structures/ViewSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 && (
Expand Down
1 change: 1 addition & 0 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -3399,6 +3399,7 @@
"Decrypted event source": "Decrypted event source",
"Original event source": "Original event source",
"Event ID: %(eventId)s": "Event ID: %(eventId)s",
"Thread root ID: %(threadRootId)s": "Thread root ID: %(threadRootId)s",
"Unable to verify this device": "Unable to verify this device",
"Verify this device": "Verify this device",
"Device verified": "Device verified",
Expand Down

0 comments on commit ded031a

Please sign in to comment.