From 759504e46f4b6f8a595bb4034ab4259ccbcc0e29 Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Tue, 10 Jan 2023 16:57:51 -0300 Subject: [PATCH] fix avatar on header for tablets --- app/views/RoomView/LeftButtons.tsx | 4 +++- app/views/RoomView/index.tsx | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/RoomView/LeftButtons.tsx b/app/views/RoomView/LeftButtons.tsx index e05975551..e0ab07194 100644 --- a/app/views/RoomView/LeftButtons.tsx +++ b/app/views/RoomView/LeftButtons.tsx @@ -24,6 +24,7 @@ const styles = StyleSheet.create({ }); interface ILeftButtonsProps { + rid?: string; tmid?: string; unreadsCount: number | null; navigation: StackNavigationProp; @@ -38,6 +39,7 @@ interface ILeftButtonsProps { } const LeftButtons = ({ + rid, tmid, unreadsCount, navigation, @@ -78,7 +80,7 @@ const LeftButtons = ({ } if (baseUrl && userId && token) { - return ; + return ; } return null; }; diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 96f556674..1dbe9b8ba 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -588,6 +588,7 @@ class RoomView extends React.Component { headerRightContainerStyle: { flexGrow: undefined, flexBasis: undefined }, headerLeft: () => (