You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
Fix share community for guests
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -34,6 +34,7 @@ import GroupStore from '../../stores/GroupStore';
|
|||||||
import FlairStore from '../../stores/FlairStore';
|
import FlairStore from '../../stores/FlairStore';
|
||||||
import { showGroupAddRoomDialog } from '../../GroupAddressPicker';
|
import { showGroupAddRoomDialog } from '../../GroupAddressPicker';
|
||||||
import {makeGroupPermalink, makeUserPermalink} from "../../matrix-to";
|
import {makeGroupPermalink, makeUserPermalink} from "../../matrix-to";
|
||||||
|
import {Group} from "matrix-js-sdk";
|
||||||
|
|
||||||
const LONG_DESC_PLACEHOLDER = _td(
|
const LONG_DESC_PLACEHOLDER = _td(
|
||||||
`<h1>HTML for your community's page</h1>
|
`<h1>HTML for your community's page</h1>
|
||||||
@@ -569,7 +570,7 @@ export default React.createClass({
|
|||||||
_onShareClick: function() {
|
_onShareClick: function() {
|
||||||
const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
|
const ShareDialog = sdk.getComponent("dialogs.ShareDialog");
|
||||||
Modal.createTrackedDialog('share community dialog', '', ShareDialog, {
|
Modal.createTrackedDialog('share community dialog', '', ShareDialog, {
|
||||||
target: this._matrixClient.getGroup(this.props.groupId),
|
target: this._matrixClient.getGroup(this.props.groupId) || new Group(this.props.groupId),
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user