minor tweaks
This commit is contained in:
parent
69c4e7a80b
commit
49e30dc723
|
@ -470,7 +470,8 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
headerLeft: () => (
|
headerLeft: () => (
|
||||||
<LeftButtons
|
<LeftButtons
|
||||||
tmid={tmid}
|
tmid={tmid}
|
||||||
unreadsCount={unreadsCount}
|
// TODO - remove this type after craete the Room state
|
||||||
|
unreadsCount={unreadsCount as number & string}
|
||||||
navigation={navigation}
|
navigation={navigation}
|
||||||
baseUrl={baseUrl}
|
baseUrl={baseUrl}
|
||||||
userId={userId}
|
userId={userId}
|
||||||
|
@ -1018,7 +1019,7 @@ class RoomView extends React.Component<IRoomViewProps, any> {
|
||||||
const { input } = event;
|
const { input } = event;
|
||||||
if (handleCommandScroll(event)) {
|
if (handleCommandScroll(event)) {
|
||||||
const offset: number = input === 'UIKeyInputUpArrow' ? 100 : -100;
|
const offset: number = input === 'UIKeyInputUpArrow' ? 100 : -100;
|
||||||
this.offset += offset;
|
this.offset! += offset;
|
||||||
this.flatList?.scrollToOffset({ offset: this.offset });
|
this.flatList?.scrollToOffset({ offset: this.offset });
|
||||||
} else if (handleCommandRoomActions(event)) {
|
} else if (handleCommandRoomActions(event)) {
|
||||||
this.goRoomActionsView();
|
this.goRoomActionsView();
|
||||||
|
|
Loading…
Reference in New Issue