From 5635fbbebb64cabdf86be72f17173186f08b859f Mon Sep 17 00:00:00 2001 From: AlexAlexandre Date: Fri, 10 Dec 2021 12:06:30 -0300 Subject: [PATCH] minor tweak --- app/views/RoomView/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 3960bb7ba..968e26b64 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -124,7 +124,7 @@ interface IRoomViewProps { Hide_System_Messages: []; baseUrl: string; serverVersion: string; - customEmojis: [key: string]; + customEmojis: { [key: string]: string }; isMasterDetail: boolean; theme: string; replyBroadcast(message: string): void; @@ -652,7 +652,7 @@ class RoomView extends React.Component { this.messageErrorActions?.showMessageErrorActions(message); }; - onEditInit = (message: { id: string; subscription: { id: string }; attachments: any; msg: string }) => { + onEditInit = (message: { id: string; subscription: { id: string }; attachments: IAttachment[]; msg: string }) => { const newMessage = { id: message.id, subscription: { @@ -787,7 +787,7 @@ class RoomView extends React.Component { try { this.setState({ showingBlockingLoader: true }); const parsedUrl = parse(messageUrl, true); - const messageId: any = parsedUrl.query.msg; + const messageId = parsedUrl.query.msg; await this.jumpToMessage(messageId); this.setState({ showingBlockingLoader: false }); } catch (e) { @@ -868,7 +868,7 @@ class RoomView extends React.Component { }); }; - getCustomEmoji = (name: any) => { + getCustomEmoji = (name: string) => { const { customEmojis } = this.props; const emoji = customEmojis[name]; if (emoji) {