Merge a65a40eab3
into dbdb23f6bc
This commit is contained in:
commit
7338be4bca
5 changed files with 9 additions and 14 deletions
|
@ -282,7 +282,7 @@
|
||||||
"terser-webpack-plugin": "^5.3.9",
|
"terser-webpack-plugin": "^5.3.9",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"ts-prune": "^0.10.3",
|
"ts-prune": "^0.10.3",
|
||||||
"typescript": "5.6.3",
|
"typescript": "5.7.2",
|
||||||
"util": "^0.12.5",
|
"util": "^0.12.5",
|
||||||
"web-streams-polyfill": "^4.0.0",
|
"web-streams-polyfill": "^4.0.0",
|
||||||
"webpack": "^5.89.0",
|
"webpack": "^5.89.0",
|
||||||
|
|
|
@ -90,7 +90,7 @@ export const MPollEndBody = React.forwardRef<any, IBodyProps>(({ mxEvent, ...pro
|
||||||
const { pollStartEvent, isLoadingPollStartEvent } = usePollStartEvent(mxEvent);
|
const { pollStartEvent, isLoadingPollStartEvent } = usePollStartEvent(mxEvent);
|
||||||
|
|
||||||
if (!pollStartEvent) {
|
if (!pollStartEvent) {
|
||||||
const pollEndFallbackMessage = M_TEXT.findIn(mxEvent.getContent()) || textForEvent(mxEvent, cli);
|
const pollEndFallbackMessage = M_TEXT.findIn<string>(mxEvent.getContent()) || textForEvent(mxEvent, cli);
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PollIcon className="mx_MPollEndBody_icon" />
|
<PollIcon className="mx_MPollEndBody_icon" />
|
||||||
|
|
|
@ -214,7 +214,7 @@ export default class EventIndexPanel extends React.Component<{}, IState> {
|
||||||
<SettingsSubsectionText>
|
<SettingsSubsectionText>
|
||||||
{this.state.enabling ? <InlineSpinner /> : _t("settings|security|message_search_failed")}
|
{this.state.enabling ? <InlineSpinner /> : _t("settings|security|message_search_failed")}
|
||||||
</SettingsSubsectionText>
|
</SettingsSubsectionText>
|
||||||
{EventIndexPeg.error && (
|
{EventIndexPeg.error ? (
|
||||||
<SettingsSubsectionText>
|
<SettingsSubsectionText>
|
||||||
<details>
|
<details>
|
||||||
<summary>{_t("common|advanced")}</summary>
|
<summary>{_t("common|advanced")}</summary>
|
||||||
|
@ -230,7 +230,7 @@ export default class EventIndexPanel extends React.Component<{}, IState> {
|
||||||
</p>
|
</p>
|
||||||
</details>
|
</details>
|
||||||
</SettingsSubsectionText>
|
</SettingsSubsectionText>
|
||||||
)}
|
) : undefined}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,6 @@ import { fireEvent, render, screen, waitFor, within } from "jest-matrix-react";
|
||||||
import { logger } from "matrix-js-sdk/src/logger";
|
import { logger } from "matrix-js-sdk/src/logger";
|
||||||
|
|
||||||
import MatrixClientContext from "../../../../../src/contexts/MatrixClientContext";
|
import MatrixClientContext from "../../../../../src/contexts/MatrixClientContext";
|
||||||
import { SDKContext, SdkContextClass } from "../../../../../src/contexts/SDKContext";
|
|
||||||
import SettingsStore from "../../../../../src/settings/SettingsStore";
|
import SettingsStore from "../../../../../src/settings/SettingsStore";
|
||||||
import { UIFeature } from "../../../../../src/settings/UIFeature";
|
import { UIFeature } from "../../../../../src/settings/UIFeature";
|
||||||
import {
|
import {
|
||||||
|
@ -35,13 +34,9 @@ describe("SetIntegrationManager", () => {
|
||||||
deleteThreePid: jest.fn(),
|
deleteThreePid: jest.fn(),
|
||||||
});
|
});
|
||||||
|
|
||||||
let stores: SdkContextClass;
|
|
||||||
|
|
||||||
const getComponent = () => (
|
const getComponent = () => (
|
||||||
<MatrixClientContext.Provider value={mockClient}>
|
<MatrixClientContext.Provider value={mockClient}>
|
||||||
<SDKContext.Provider value={stores}>
|
|
||||||
<SetIntegrationManager />
|
<SetIntegrationManager />
|
||||||
</SDKContext.Provider>
|
|
||||||
</MatrixClientContext.Provider>
|
</MatrixClientContext.Provider>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -11464,10 +11464,10 @@ typed-array-length@^1.0.6:
|
||||||
possible-typed-array-names "^1.0.0"
|
possible-typed-array-names "^1.0.0"
|
||||||
reflect.getprototypeof "^1.0.6"
|
reflect.getprototypeof "^1.0.6"
|
||||||
|
|
||||||
typescript@5.6.3:
|
typescript@5.7.2:
|
||||||
version "5.6.3"
|
version "5.7.2"
|
||||||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b"
|
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
|
||||||
integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==
|
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
|
||||||
|
|
||||||
ua-parser-js@^1.0.2:
|
ua-parser-js@^1.0.2:
|
||||||
version "1.0.39"
|
version "1.0.39"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue