Disable option to Quote when we don't have sufficient permissions (#8893)

This commit is contained in:
Šimon Brandner 2022-06-25 12:43:18 +02:00 committed by GitHub
parent 9933c31c61
commit eca14dea57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -454,7 +454,7 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
} }
let quoteButton: JSX.Element; let quoteButton: JSX.Element;
if (eventTileOps) { // this event is rendered using TextualBody if (eventTileOps && canSendMessages) { // this event is rendered using TextualBody
quoteButton = ( quoteButton = (
<IconizedContextMenuOption <IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_iconQuote" iconClassName="mx_MessageContextMenu_iconQuote"