Add matrix account link to create private message form (#2399)

This commit is contained in:
SleeplessOne1917 2024-03-28 11:12:06 -04:00 committed by GitHub
parent 72553e429b
commit 23fb711efa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 2 deletions

@ -1 +1 @@
Subproject commit 62c8418021bc39543c87b4ae3dcf2419d13f61e0
Subproject commit 249a8f6cf1911c8b429a36388a2eef8b318386c8

View file

@ -94,6 +94,28 @@ export class PrivateMessageForm extends Component<
#
</a>
</T>
{this.props.recipient.matrix_user_id && (
<>
&nbsp;
<T
i18nKey="private_message_form_user_matrix_blurb"
parent="span"
interpolation={{
matrix_id: this.props.recipient.matrix_user_id,
}}
>
#
<a
className="alert-link"
rel={relTags}
href={`https://matrix.to/#/${this.props.recipient.matrix_user_id}`}
>
#
</a>
#
</T>
</>
)}
</div>
<div className="mb-3 row">
<label className="col-sm-2 col-form-label">
@ -101,7 +123,7 @@ export class PrivateMessageForm extends Component<
</label>
<div className="col-sm-10">
<MarkdownTextArea
onSubmit={() => {
onSubmit={event => {
this.handlePrivateMessageSubmit(this, event);
}}
initialContent={this.state.content}