Move reaction message previews out of labs (#10601)

* Update reaction message previews to match designs

* Delabs reaction message previews

* tsc strict

* Iterate

* Add test

* Iterate
This commit is contained in:
Michael Telatynski 2023-05-05 08:45:14 +01:00 committed by GitHub
parent 1f4d857283
commit 4dd214506b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 167 additions and 45 deletions

View file

@ -114,7 +114,7 @@ interface IProps extends MenuProps {
// True if the menu is being used as a right click menu
rightClick?: boolean;
// The Relations model from the JS SDK for reactions to `mxEvent`
reactions?: Relations | null | undefined;
reactions?: Relations | null;
// A permalink to this event or an href of an anchor element the user has clicked
link?: string;
@ -556,7 +556,7 @@ export default class MessageContextMenu extends React.Component<IProps, IState>
}
let jumpToRelatedEventButton: JSX.Element | undefined;
const relatedEventId = mxEvent.getWireContent()?.["m.relates_to"]?.event_id;
const relatedEventId = mxEvent.relationEventId;
if (relatedEventId && SettingsStore.getValue("developerMode")) {
jumpToRelatedEventButton = (
<IconizedContextMenuOption