Rocket.Chat.ReactNative/app/actions/deepLinking.ts

32 lines
559 B
TypeScript
Raw Normal View History

2022-01-14 14:36:38 +00:00
import { Action } from 'redux';
import { DEEP_LINKING } from './actionsTypes';
interface IParams {
path: string;
rid: string;
messageId: string;
host: string;
fullURL: string;
type: string;
token: string;
}
interface IDeepLinkingOpen extends Action {
params: Partial<IParams>;
}
export function deepLinkingOpen(params: Partial<IParams>): IDeepLinkingOpen {
return {
type: DEEP_LINKING.OPEN,
params
};
}
2023-11-24 12:46:58 +00:00
export function deepLinkingClickCallPush(params: any): IDeepLinkingOpen {
return {
type: DEEP_LINKING.OPEN_VIDEO_CONF,
params
};
}