Move scalar auth stuff to ScalarAuthClient from RoomSettings
This commit is contained in:
parent
d3bc2b7df7
commit
6ec7e5df28
3 changed files with 59 additions and 31 deletions
|
@ -176,15 +176,23 @@ module.exports = React.createClass({
|
|||
}
|
||||
},
|
||||
|
||||
onStarterLinkClick: function() {
|
||||
},
|
||||
|
||||
render: function() {
|
||||
const EmojiText = sdk.getComponent('elements.EmojiText');
|
||||
var mxEvent = this.props.mxEvent;
|
||||
var content = mxEvent.getContent();
|
||||
|
||||
var body = HtmlUtils.bodyToHtml(content, this.props.highlights, {});
|
||||
|
||||
if (this.props.highlightLink) {
|
||||
body = <a href={ this.props.highlightLink }>{ body }</a>;
|
||||
}
|
||||
else if (content.data && typeof content.data["org.matrix.neb.starter_link"] === "string") {
|
||||
console.log("Set starter link");
|
||||
body = <a href={ content.data["org.matrix.neb.starter_link"] }>{ body }</a>;
|
||||
}
|
||||
|
||||
var widgets;
|
||||
if (this.state.links.length && !this.state.widgetHidden && this.props.showUrlPreview) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue