mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-29 17:36:27 +00:00
Remove references to VerificationRequest (#11050)
* Update references to `VerificationRequestEvent` * Update references to `Phase` * update references to legacy `PHASE_*` constants * Replace `request.canAccept` with `canAcceptVerificationRequest` * Replace `VerificationRequest` with the interface throughout * Minor strict type fixes * Add a couple of tests
This commit is contained in:
committed by
GitHub
parent
6486255f54
commit
b9b93264b6
@@ -16,11 +16,6 @@ limitations under the License.
|
||||
|
||||
import { act, render, waitFor } from "@testing-library/react";
|
||||
import React, { ComponentProps } from "react";
|
||||
import {
|
||||
Phase,
|
||||
VerificationRequest,
|
||||
VerificationRequestEvent,
|
||||
} from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
|
||||
import { TypedEventEmitter } from "matrix-js-sdk/src/models/typed-event-emitter";
|
||||
import { User } from "matrix-js-sdk/src/models/user";
|
||||
import { Mocked } from "jest-mock";
|
||||
@@ -30,6 +25,9 @@ import {
|
||||
Verifier,
|
||||
VerifierEvent,
|
||||
VerifierEventHandlerMap,
|
||||
VerificationPhase as Phase,
|
||||
VerificationRequest,
|
||||
VerificationRequestEvent,
|
||||
} from "matrix-js-sdk/src/crypto-api/verification";
|
||||
|
||||
import VerificationPanel from "../../../../src/components/views/right_panel/VerificationPanel";
|
||||
|
||||
Reference in New Issue
Block a user