mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 04:11:12 +00:00
Add matrix account link to create private message form (#2399)
This commit is contained in:
parent
72553e429b
commit
23fb711efa
2 changed files with 24 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 62c8418021bc39543c87b4ae3dcf2419d13f61e0
|
||||
Subproject commit 249a8f6cf1911c8b429a36388a2eef8b318386c8
|
|
@ -94,6 +94,28 @@ export class PrivateMessageForm extends Component<
|
|||
#
|
||||
</a>
|
||||
</T>
|
||||
{this.props.recipient.matrix_user_id && (
|
||||
<>
|
||||
|
||||
<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}
|
||||
|
|
Loading…
Reference in a new issue