1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Remove Piwik support (#8835)

* Remove all mentions of Piwik

* Kill off all consumer of the old Piwik Analytics module

* Simplify ModalManager interface

* i18n

* Attempt to fix old e2e tests

* Remove unused component

* Iterate PR
This commit is contained in:
Michael Telatynski
2022-06-14 17:51:51 +01:00
committed by GitHub
parent 7d14d15ba6
commit 3c5c2bef6d
142 changed files with 446 additions and 1412 deletions

View File

@ -36,7 +36,7 @@ const MXID_PROFILE_STATES = {
};
jest.mock('../../src/Modal', () => ({
createTrackedDialog: jest.fn(),
createDialog: jest.fn(),
}));
jest.mock('../../src/settings/SettingsStore', () => ({
@ -54,12 +54,8 @@ const mockPromptBeforeInviteUnknownUsers = (value: boolean) => {
};
const mockCreateTrackedDialog = (callbackName: 'onInviteAnyways'|'onGiveUp') => {
mocked(Modal.createTrackedDialog).mockImplementation(
(
_analyticsAction: string,
_analyticsInfo: string,
...rest: Parameters<ModalManager['createDialog']>
): any => {
mocked(Modal.createDialog).mockImplementation(
(...rest: Parameters<ModalManager['createDialog']>): any => {
rest[1][callbackName]();
},
);