From 629f17d967fc824316e2363af3ef8cbc44aecacc Mon Sep 17 00:00:00 2001 From: Gerzon Z Date: Wed, 4 May 2022 12:30:39 -0400 Subject: [PATCH] remove: unnecessary param --- app/views/RoomActionsView/index.tsx | 2 +- app/views/RoomView/index.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/RoomActionsView/index.tsx b/app/views/RoomActionsView/index.tsx index 2d1a4212e..73e8f8e66 100644 --- a/app/views/RoomActionsView/index.tsx +++ b/app/views/RoomActionsView/index.tsx @@ -1161,7 +1161,7 @@ class RoomActionsView extends React.Component this.onPressTouchable({ route: 'CannedResponsesListView', params: { rid, room } })} + onPress={() => this.onPressTouchable({ route: 'CannedResponsesListView', params: { rid } })} left={() => } showActionIndicator /> diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 2395bb9ff..440d3ca3b 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -1260,7 +1260,7 @@ class RoomView extends React.Component { goToCannedResponses = () => { const { room } = this.state; - Navigation.navigate('CannedResponsesListView', { rid: room.rid, room }); + Navigation.navigate('CannedResponsesListView', { rid: room.rid }); }; renderItem = (item: TAnyMessageModel, previousItem: TAnyMessageModel, highlightedMessage?: string) => { @@ -1473,6 +1473,7 @@ class RoomView extends React.Component { if ('id' in room) { ({ sysMes, bannerClosed, announcement, tunread, ignored } = room); } + return (