Migrate all pinning checks and actions into PinningUtils
(#12964)
This commit is contained in:
parent
26399237f6
commit
5bfbca9eb0
8 changed files with 146 additions and 67 deletions
|
@ -177,7 +177,7 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
|
|||
this.props.mxEvent.getType() !== EventType.RoomServerAcl &&
|
||||
this.props.mxEvent.getType() !== EventType.RoomEncryption;
|
||||
|
||||
const canPin = PinningUtils.canPinOrUnpin(cli, this.props.mxEvent);
|
||||
const canPin = PinningUtils.canPin(cli, this.props.mxEvent) || PinningUtils.canUnpin(cli, this.props.mxEvent);
|
||||
|
||||
this.setState({ canRedact, canPin });
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue