From 29f554caab1753d2af43c7bcf19533de24683249 Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Wed, 15 Dec 2021 01:15:29 -0300 Subject: [PATCH] minor tweak --- app/views/RoomView/index.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 6788dca19..54da020c3 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -161,6 +161,15 @@ interface INavToThread { tlm?: string; } +interface IBlockAction { + actionId: string; + appId: string; + value: string; + blockId: string; + rid: string; + mid: string; +} + class RoomView extends React.Component { private rid: string; private t: RoomType; @@ -1024,7 +1033,7 @@ class RoomView extends React.Component { } }; - blockAction = ({ actionId, appId, value, blockId, rid, mid }: any) => + blockAction = ({ actionId, appId, value, blockId, rid, mid }: IBlockAction) => RocketChat.triggerBlockAction({ blockId, actionId, @@ -1065,7 +1074,7 @@ class RoomView extends React.Component { loaderItem }); - renderItem = (item: IRoomItem, previousItem: IRoomItem, highlightedMessage: any) => { + renderItem = (item: IRoomItem, previousItem: IRoomItem, highlightedMessage: string) => { const { room, lastOpen, canAutoTranslate } = this.state; const { user, Message_GroupingPeriod, Message_TimeFormat, useRealName, baseUrl, Message_Read_Receipt_Enabled, theme } = this.props;