Right panel: view third party invite info without clearing history (#11934)
* add View3pidInvite to actions enum, replace uses * extract out action handler * push card instead, test * comment
This commit is contained in:
parent
fbd64d37f2
commit
0bbb9e8c89
7 changed files with 124 additions and 10 deletions
|
@ -27,6 +27,7 @@ import RoomAvatar from "../avatars/RoomAvatar";
|
|||
import RoomName from "../elements/RoomName";
|
||||
import ErrorDialog from "../dialogs/ErrorDialog";
|
||||
import AccessibleButton from "../elements/AccessibleButton";
|
||||
import { Action } from "../../../dispatcher/actions";
|
||||
|
||||
interface IProps {
|
||||
event: MatrixEvent;
|
||||
|
@ -91,7 +92,7 @@ export default class ThirdPartyMemberInfo extends React.Component<IProps, IState
|
|||
|
||||
public onCancel = (): void => {
|
||||
dis.dispatch({
|
||||
action: "view_3pid_invite",
|
||||
action: Action.View3pidInvite,
|
||||
event: null,
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue