diff --git a/packages/hms-video-store/src/schema/error.ts b/packages/hms-video-store/src/schema/error.ts index 7f71cf349c..ca9dcb4572 100644 --- a/packages/hms-video-store/src/schema/error.ts +++ b/packages/hms-video-store/src/schema/error.ts @@ -14,14 +14,6 @@ export interface HMSException { nativeError?: Error; } -export interface HMSTrackException { - code: number; - action: string; - name: string; - message: string; - description: string; - isTerminal: boolean; - timestamp: Date; - nativeError?: Error; +export interface HMSTrackException extends HMSException { trackType: HMSTrackExceptionTrackType; } diff --git a/packages/hms-video-store/src/schema/notification.ts b/packages/hms-video-store/src/schema/notification.ts index 2b985158d3..eb7fe063c5 100644 --- a/packages/hms-video-store/src/schema/notification.ts +++ b/packages/hms-video-store/src/schema/notification.ts @@ -1,5 +1,5 @@ import { HMSDeviceChangeEvent } from './device-change'; -import { HMSException, HMSTrackException } from './error'; +import { HMSException } from './error'; import { HMSMessage } from './message'; import { HMSPeer, HMSTrack } from './peer'; import { HMSPlaylistItem } from './playlist'; @@ -44,7 +44,7 @@ export interface HMSMessageNotification extends BaseNotification { } export interface HMSExceptionNotification extends BaseNotification { type: HMSNotificationTypes.ERROR; - data: HMSException | HMSTrackException; + data: HMSException; } export interface HMSChangeTrackStateRequestNotification extends BaseNotification { type: HMSNotificationTypes.CHANGE_TRACK_STATE_REQUEST; diff --git a/packages/roomkit-react/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx b/packages/roomkit-react/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx index f78de865d7..c605dd5b3e 100644 --- a/packages/roomkit-react/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx +++ b/packages/roomkit-react/src/Prebuilt/components/Notifications/PermissionErrorModal.tsx @@ -20,7 +20,7 @@ export function PermissionErrorNotificationModal() { return ; } -export const PermissionErrorModal = ({ error }: { error?: HMSTrackException | HMSException }) => { +export const PermissionErrorModal = ({ error }: { error?: HMSException }) => { const [deviceType, setDeviceType] = useState(''); const [isSystemError, setIsSystemError] = useState(false); const isMobile = useMedia(cssConfig.media.md);