You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Interface dispatcher payload
& use constant in test
This commit is contained in:
@ -25,6 +25,8 @@ import DMRoomMap from '../src/utils/DMRoomMap';
|
||||
import EventEmitter from 'events';
|
||||
import SdkConfig from '../src/SdkConfig';
|
||||
import { ActionPayload } from '../src/dispatcher/payloads';
|
||||
import { Actions } from '../src/notifications/types';
|
||||
import { Action } from '../src/dispatcher/actions';
|
||||
|
||||
const REAL_ROOM_ID = '$room1:example.org';
|
||||
const MAPPED_ROOM_ID = '$room2:example.org';
|
||||
@ -172,7 +174,7 @@ describe('CallHandler', () => {
|
||||
}]);
|
||||
|
||||
dis.dispatch({
|
||||
action: 'dial_number',
|
||||
action: Action.DialNumber,
|
||||
number: '01818118181',
|
||||
}, true);
|
||||
|
||||
|
Reference in New Issue
Block a user