You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Show the group's room if one is returned
This commit is contained in:
@@ -83,11 +83,18 @@ export default createReactClass({
|
|||||||
localpart: this.state.groupId,
|
localpart: this.state.groupId,
|
||||||
profile: profile,
|
profile: profile,
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
dis.dispatch({
|
if (result.room_id) {
|
||||||
action: 'view_group',
|
dis.dispatch({
|
||||||
group_id: result.group_id,
|
action: 'view_room',
|
||||||
group_is_new: true,
|
room_id: result.room_id,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'view_group',
|
||||||
|
group_id: result.group_id,
|
||||||
|
group_is_new: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
this.props.onFinished(true);
|
this.props.onFinished(true);
|
||||||
}).catch((e) => {
|
}).catch((e) => {
|
||||||
this.setState({createError: e});
|
this.setState({createError: e});
|
||||||
|
|||||||
Reference in New Issue
Block a user