Release message right-click context menu out of labs (#8613)
parent
3eecd68175
commit
488babaf65
|
@ -854,9 +854,6 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
|
||||||
private showContextMenu(ev: React.MouseEvent, permalink?: string): void {
|
private showContextMenu(ev: React.MouseEvent, permalink?: string): void {
|
||||||
const clickTarget = ev.target as HTMLElement;
|
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
|
// Try to find an anchor element
|
||||||
const anchorElement = (clickTarget instanceof HTMLAnchorElement) ? clickTarget : clickTarget.closest("a");
|
const anchorElement = (clickTarget instanceof HTMLAnchorElement) ? clickTarget : clickTarget.closest("a");
|
||||||
|
|
||||||
|
|
|
@ -899,7 +899,6 @@
|
||||||
"Right panel stays open (defaults to room member list)": "Right panel stays open (defaults to room member list)",
|
"Right panel stays open (defaults to room member list)": "Right panel stays open (defaults to room member list)",
|
||||||
"Jump to date (adds /jumptodate and jump to date headers)": "Jump to date (adds /jumptodate and jump to date headers)",
|
"Jump to date (adds /jumptodate and jump to date headers)": "Jump to date (adds /jumptodate and jump to date headers)",
|
||||||
"Send read receipts": "Send read receipts",
|
"Send read receipts": "Send read receipts",
|
||||||
"Right-click message context menu": "Right-click message context menu",
|
|
||||||
"Live Location Sharing (temporary implementation: locations persist in room history)": "Live Location Sharing (temporary implementation: locations persist in room history)",
|
"Live Location Sharing (temporary implementation: locations persist in room history)": "Live Location Sharing (temporary implementation: locations persist in room history)",
|
||||||
"Favourite Messages (under active development)": "Favourite Messages (under active development)",
|
"Favourite Messages (under active development)": "Favourite Messages (under active development)",
|
||||||
"Use new session manager (under active development)": "Use new session manager (under active development)",
|
"Use new session manager (under active development)": "Use new session manager (under active development)",
|
||||||
|
|
|
@ -406,13 +406,6 @@ export const SETTINGS: {[setting: string]: ISetting} = {
|
||||||
displayName: _td("Send read receipts"),
|
displayName: _td("Send read receipts"),
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
"feature_message_right_click_context_menu": {
|
|
||||||
isFeature: true,
|
|
||||||
supportedLevels: LEVELS_FEATURE,
|
|
||||||
labsGroup: LabGroup.Rooms,
|
|
||||||
displayName: _td("Right-click message context menu"),
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
"feature_location_share_live": {
|
"feature_location_share_live": {
|
||||||
isFeature: true,
|
isFeature: true,
|
||||||
labsGroup: LabGroup.Messaging,
|
labsGroup: LabGroup.Messaging,
|
||||||
|
|
Loading…
Reference in New Issue