From 6a9f878d28beada5eb46a87d47ba2f7e7870b322 Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Fri, 17 Dec 2021 22:32:44 -0300 Subject: [PATCH] fix problem with difference between IRoom and IRoomModel --- app/stacks/types.ts | 2 +- app/views/MessagesView/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/stacks/types.ts b/app/stacks/types.ts index be95f4e3d..a4754ed30 100644 --- a/app/stacks/types.ts +++ b/app/stacks/types.ts @@ -84,7 +84,7 @@ export type ChatsStackParamList = { }; AutoTranslateView: { rid: string; - room: IRoom; + room: TRoomModel; }; DirectoryView: undefined; NotificationPrefView: { diff --git a/app/views/MessagesView/index.tsx b/app/views/MessagesView/index.tsx index 14532051b..dfbf44dc1 100644 --- a/app/views/MessagesView/index.tsx +++ b/app/views/MessagesView/index.tsx @@ -20,7 +20,7 @@ import SafeAreaView from '../../containers/SafeAreaView'; import getThreadName from '../../lib/methods/getThreadName'; import styles from './styles'; import { ChatsStackParamList } from '../../stacks/types'; -import { IRoom, RoomType } from '../../definitions/IRoom'; +import { IRoom, RoomType, TRoomModel } from '../../definitions/IRoom'; interface IMessagesViewProps { user: { @@ -78,7 +78,7 @@ interface IParams { name?: string; fname?: string; prid?: string; - room: IRoom; + room: TRoomModel; jumpToMessageId?: string; jumpToThreadId?: string; roomUserId?: string;