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

Fix AppTile context menu not always showing up when it has options #11358

Merged
merged 3 commits into from
Aug 3, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/views/elements/AppTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,9 @@ export default class AppTile extends React.Component<IProps, IState> {
private dispatcherRef?: string;
private unmounted = false;

public constructor(props: IProps) {
public constructor(props: IProps, context: ContextType<typeof MatrixClientContext>) {
super(props);
this.context = context; // XXX: workaround for lack of `declare` support on `public context!:` definition

// Tiles in miniMode are floating, and therefore not docked
if (!this.props.miniMode) {
Expand Down
Loading