Add helper for thread root id in view source (#9632)

pull/28217/head
Germain 2022-11-28 15:53:40 +00:00 committed by GitHub
parent e71a757f90
commit ded031aca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -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 && (

View File

@ -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",