Force the GroupStore to update after creating a prototype community
parent
027f263589
commit
4f29770adb
|
@ -24,6 +24,7 @@ import { MatrixClientPeg } from "../../../MatrixClientPeg";
|
||||||
import InfoTooltip from "../elements/InfoTooltip";
|
import InfoTooltip from "../elements/InfoTooltip";
|
||||||
import dis from "../../../dispatcher/dispatcher";
|
import dis from "../../../dispatcher/dispatcher";
|
||||||
import {showCommunityRoomInviteDialog} from "../../../RoomInvite";
|
import {showCommunityRoomInviteDialog} from "../../../RoomInvite";
|
||||||
|
import GroupStore from "../../../stores/GroupStore";
|
||||||
|
|
||||||
interface IProps extends IDialogProps {
|
interface IProps extends IDialogProps {
|
||||||
}
|
}
|
||||||
|
@ -92,6 +93,8 @@ export default class CreateCommunityPrototypeDialog extends React.PureComponent<
|
||||||
this.props.onFinished(true);
|
this.props.onFinished(true);
|
||||||
|
|
||||||
if (result.room_id) {
|
if (result.room_id) {
|
||||||
|
// Force the group store to update as it might have missed the general chat
|
||||||
|
await GroupStore.refreshGroupRooms(result.group_id);
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'view_room',
|
action: 'view_room',
|
||||||
room_id: result.room_id,
|
room_id: result.room_id,
|
||||||
|
|
Loading…
Reference in New Issue