Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Update "jump to related event" for design requirements & dev tooling (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live authored May 20, 2022
1 parent 804ddbb commit 025fb63
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion res/css/views/context_menus/_MessageContextMenu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ limitations under the License.
}

.mx_MessageContextMenu_jumpToEvent::before {
mask-image: url('$(res)/img/element-icons/left-arrow.svg');
mask-image: url('$(res)/img/element-icons/child-relationship.svg');
}
}
1 change: 1 addition & 0 deletions res/img/element-icons/child-relationship.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion res/img/element-icons/left-arrow.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/views/context_menus/MessageContextMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ export default class MessageContextMenu extends React.Component<IProps, IState>

let jumpToRelatedEventButton: JSX.Element;
const relatedEventId = mxEvent.getWireContent()?.["m.relates_to"]?.event_id;
if (relatedEventId) {
if (relatedEventId && SettingsStore.getValue("developerMode")) {
jumpToRelatedEventButton = (
<IconizedContextMenuOption
iconClassName="mx_MessageContextMenu_jumpToEvent"
Expand Down

0 comments on commit 025fb63

Please sign in to comment.