From 89db5c4ed9b59dda914337c1c194272b5bbbe521 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Tue, 28 Feb 2023 15:30:51 -0300 Subject: [PATCH] Fix infinite loading when deeplinking to thread --- app/views/RoomView/index.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/views/RoomView/index.tsx b/app/views/RoomView/index.tsx index 0e6f2d4ec..771229a26 100644 --- a/app/views/RoomView/index.tsx +++ b/app/views/RoomView/index.tsx @@ -1188,6 +1188,11 @@ class RoomView extends React.Component { if ('id' in item && item.t === E2E_MESSAGE_TYPE && item.e2e !== E2E_STATUS.DONE) { name = I18n.t('Encrypted_message'); } + if (!jumpToMessageId) { + setTimeout(() => { + sendLoadingEvent({ visible: false }); + }, 300); + } return navigation.push('RoomView', { rid: this.rid, tmid: item.tmid,