Prevent forwarding polls (#7819)
This commit is contained in:
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue