diff --git a/app/mobile/src/session/Session.jsx b/app/mobile/src/session/Session.jsx index 73e7ecc2..dfea8e8d 100644 --- a/app/mobile/src/session/Session.jsx +++ b/app/mobile/src/session/Session.jsx @@ -254,7 +254,9 @@ function CardDrawerScreen({ navParams }) { const [dmChannel, setDmChannel] = useState(null); const openContact = (contact) => { navParams.setContact(contact); - navParams.contactNav.openDrawer(); + setTimeout(() => { + navParams.contactNav.openDrawer(); + }); }; const openRegistry = () => { navParams.registryNav.openDrawer(); @@ -277,7 +279,9 @@ function RegistryDrawerScreen({ navParams }) { const drawerParams = { drawerPosition: 'right', headerShown: false, swipeEnabled: false, drawerType: 'front' }; const openContact = (contact) => { navParams.setContact(contact); - navParams.contactNav.openDrawer(); + setTimeout(() => { + navParams.contactNav.openDrawer(); + }); }; return ( diff --git a/app/mobile/src/session/contact/Contact.jsx b/app/mobile/src/session/contact/Contact.jsx index 6a04afdf..f56600c3 100644 --- a/app/mobile/src/session/contact/Contact.jsx +++ b/app/mobile/src/session/contact/Contact.jsx @@ -42,7 +42,7 @@ export function Contact({ contact, drawer, back }) { if (!busy) { try { setBusy(true); - await new Promise(r => setTimeout(r, 100)); + await new Promise(r => setTimeout(r, 200)); await action(); setBusy(false); } @@ -62,9 +62,6 @@ export function Contact({ contact, drawer, back }) { { drawer && ( { state.username } - - - { state.status === 'offsync' && ( @@ -107,6 +104,9 @@ export function Contact({ contact, drawer, back }) { )} + + + { state.name && ( { state.name } @@ -140,7 +140,7 @@ export function Contact({ contact, drawer, back }) { { !busy && ( { state.status === 'offsync' && ( - + setAction(actions.resync)}> { state.strings.actionResync } @@ -325,7 +325,7 @@ export function Contact({ contact, drawer, back }) { { !busy && ( { state.status === 'offsync' && ( - + setAction(actions.resync)}> { state.strings.actionResync }