From d42f623a2f33146d04717fe89fa4094b6ca2e5d7 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 29 Nov 2022 16:30:09 -0300 Subject: [PATCH] Disable layout animation --- app/views/RoomView/List/index.tsx | 12 ++++++------ app/views/RoomsListView/index.tsx | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/RoomView/List/index.tsx b/app/views/RoomView/List/index.tsx index dc0fdd66a..02f2dfeca 100644 --- a/app/views/RoomView/List/index.tsx +++ b/app/views/RoomView/List/index.tsx @@ -10,7 +10,7 @@ import ActivityIndicator from '../../../containers/ActivityIndicator'; import { MessageType, TAnyMessage, TMessageModel, TThreadMessageModel, TThreadModel } from '../../../definitions'; import database from '../../../lib/database'; import { compareServerVersion, debounce } from '../../../lib/methods/helpers'; -import { animateNextTransition } from '../../../lib/methods/helpers/layoutAnimation'; +// import { animateNextTransition } from '../../../lib/methods/helpers/layoutAnimation'; import log from '../../../lib/methods/helpers/log'; import EmptyRoom from '../EmptyRoom'; // @ts-ignore @@ -148,7 +148,7 @@ class ListContainer extends React.Component { this.count += QUERY_SIZE; - const { rid, tmid, showMessageInMainThread, serverVersion, listRef } = this.props; + const { rid, tmid, showMessageInMainThread, serverVersion } = this.props; const db = database.active; // handle servers with version < 3.0.0 @@ -207,10 +207,10 @@ class ListContainer extends React.Component | IRoomsListViewState | null), callback?: () => void ) => { - if (this.animated) { - this.scroll?.prepareForLayoutAnimationRender(); - animateNextTransition(); - } + // if (this.animated) { + // this.scroll?.prepareForLayoutAnimationRender(); + // animateNextTransition(); + // } this.setState(state, callback); };