[FIX] Black screen on share extension if lock screen is enabled (#3320)
* Resolve issue causing black screen when sharing * Add logEvent to error in local authenticate * minor tweak * Revert changes Co-authored-by: Reinaldo Neto <reinaldonetof@hotmail.com> Co-authored-by: Reinaldo Neto <47038980+reinaldonetof@users.noreply.github.com> Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
b795d4b013
commit
28d7a1bab2
|
@ -110,7 +110,11 @@ export const localAuthenticate = async server => {
|
|||
// if screen lock is enabled
|
||||
if (serverRecord?.autoLock) {
|
||||
// Make sure splash screen has been hidden
|
||||
await RNBootSplash.hide();
|
||||
try {
|
||||
await RNBootSplash.hide();
|
||||
} catch {
|
||||
// Do nothing
|
||||
}
|
||||
|
||||
// Check if the app has passcode
|
||||
const result = await checkHasPasscode({ serverRecord });
|
||||
|
|
|
@ -106,9 +106,7 @@ class AttachmentView extends React.Component {
|
|||
handleSave = async () => {
|
||||
const { attachment } = this.state;
|
||||
const { user, baseUrl } = this.props;
|
||||
const {
|
||||
title_link, image_url, image_type, video_url, video_type
|
||||
} = attachment;
|
||||
const { title_link, image_url, image_type, video_url, video_type } = attachment;
|
||||
const url = title_link || image_url || video_url;
|
||||
const mediaAttachment = formatAttachmentUrl(url, user.id, user.token, baseUrl);
|
||||
|
||||
|
|
Loading…
Reference in New Issue