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
2 changed files with 73 additions and 1 deletions
@@ -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 {