minor tweaks

This commit is contained in:
AlexAlexandre 2021-12-16 00:02:18 -03:00
parent 69c4e7a80b
commit 49e30dc723
1 changed files with 3 additions and 2 deletions

View File

@ -470,7 +470,8 @@ class RoomView extends React.Component<IRoomViewProps, any> {
headerLeft: () => (
<LeftButtons
tmid={tmid}
unreadsCount={unreadsCount}
// TODO - remove this type after craete the Room state
unreadsCount={unreadsCount as number & string}
navigation={navigation}
baseUrl={baseUrl}
userId={userId}
@ -1018,7 +1019,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
const { input } = event;
if (handleCommandScroll(event)) {
const offset: number = input === 'UIKeyInputUpArrow' ? 100 : -100;
this.offset += offset;
this.offset! += offset;
this.flatList?.scrollToOffset({ offset: this.offset });
} else if (handleCommandRoomActions(event)) {
this.goRoomActionsView();