Prevent forwarding polls (#7819)

This commit is contained in:
Andy Balaam 2022-02-17 10:57:12 +00:00 committed by GitHub
parent 4292381202
commit 93d4364455
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 73 additions and 1 deletions

View file

@ -516,7 +516,10 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
}
function canForward(event: MatrixEvent): boolean {
return !isLocationEvent(event);
return !(
isLocationEvent(event) ||
M_POLL_START.matches(event.getType())
);
}
function isLocationEvent(event: MatrixEvent): boolean {