Release message right-click context menu out of labs (#8613)

This commit is contained in:
Šimon Brandner 2022-08-18 09:18:36 +02:00 committed by GitHub
parent 3eecd68175
commit 488babaf65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 11 deletions

View file

@ -854,9 +854,6 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
private showContextMenu(ev: React.MouseEvent, permalink?: string): void {
const clickTarget = ev.target as HTMLElement;
// Return if message right-click context menu isn't enabled
if (!SettingsStore.getValue("feature_message_right_click_context_menu")) return;
// Try to find an anchor element
const anchorElement = (clickTarget instanceof HTMLAnchorElement) ? clickTarget : clickTarget.closest("a");