Fix infinite loading when deeplinking to thread

This commit is contained in:
Diego Mello 2023-02-28 15:30:51 -03:00
parent 6157a298eb
commit 89db5c4ed9
1 changed files with 5 additions and 0 deletions

View File

@ -1188,6 +1188,11 @@ class RoomView extends React.Component<IRoomViewProps, IRoomViewState> {
if ('id' in item && item.t === E2E_MESSAGE_TYPE && item.e2e !== E2E_STATUS.DONE) { if ('id' in item && item.t === E2E_MESSAGE_TYPE && item.e2e !== E2E_STATUS.DONE) {
name = I18n.t('Encrypted_message'); name = I18n.t('Encrypted_message');
} }
if (!jumpToMessageId) {
setTimeout(() => {
sendLoadingEvent({ visible: false });
}, 300);
}
return navigation.push('RoomView', { return navigation.push('RoomView', {
rid: this.rid, rid: this.rid,
tmid: item.tmid, tmid: item.tmid,