Moved custom field name to a const
This commit is contained in:
parent
70b4308bab
commit
e661c017e3
1 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,8 @@ import { UPDATE_EVENT } from "../../../stores/AsyncStore";
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
import InviteReason from "../elements/InviteReason";
|
import InviteReason from "../elements/InviteReason";
|
||||||
|
|
||||||
|
const MemberEventHtmlReasonField = "io.element.html_reason";
|
||||||
|
|
||||||
const MessageCase = Object.freeze({
|
const MessageCase = Object.freeze({
|
||||||
NotLoggedIn: "NotLoggedIn",
|
NotLoggedIn: "NotLoggedIn",
|
||||||
Joining: "Joining",
|
Joining: "Joining",
|
||||||
|
@ -497,7 +499,7 @@ export default class RoomPreviewBar extends React.Component {
|
||||||
if (memberEventContent.reason) {
|
if (memberEventContent.reason) {
|
||||||
reasonElement = <InviteReason
|
reasonElement = <InviteReason
|
||||||
reason={memberEventContent.reason}
|
reason={memberEventContent.reason}
|
||||||
htmlReason={memberEventContent["io.element.html_reason"]}
|
htmlReason={memberEventContent[MemberEventHtmlReasonField]}
|
||||||
/>;
|
/>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue