diff --git a/app/client/mobile/src/content/Content.tsx b/app/client/mobile/src/content/Content.tsx index dc1ba565..33e04d05 100644 --- a/app/client/mobile/src/content/Content.tsx +++ b/app/client/mobile/src/content/Content.tsx @@ -38,7 +38,7 @@ export function Content({openConversation, textCard}: {openConversation: ()=>voi setAdding(true); try { const id = await actions.openTopic(cardId); - actions.setFocus(null, id); + await actions.setFocus(null, id); openConversation(); } catch (err) { console.log(err); @@ -59,7 +59,7 @@ export function Content({openConversation, textCard}: {openConversation: ()=>voi setSubjectTopic(''); setMembers([]); setSealedTopic(false); - actions.setFocus(null, id); + await actions.setFocus(null, id); openConversation(); } catch (err) { console.log(err); diff --git a/app/client/mobile/src/context/useAppContext.hook.ts b/app/client/mobile/src/context/useAppContext.hook.ts index c98a3e17..069cdcbe 100644 --- a/app/client/mobile/src/context/useAppContext.hook.ts +++ b/app/client/mobile/src/context/useAppContext.hook.ts @@ -9,8 +9,8 @@ const SETTINGS_DB = 'ls_v001.db'; const databag = new DatabagSDK( { - tagBatch: 32, - topicBatch: 32, + tagBatch: 24, + topicBatch: 24, articleTypes: [], channelTypes: ['sealed', 'superbasic'], }, diff --git a/app/client/mobile/src/conversation/Conversation.tsx b/app/client/mobile/src/conversation/Conversation.tsx index 2be633a8..2e7b5ff1 100644 --- a/app/client/mobile/src/conversation/Conversation.tsx +++ b/app/client/mobile/src/conversation/Conversation.tsx @@ -204,11 +204,11 @@ export function Conversation({close}: {close: ()=>void}) { )} - { state.detailSet && ( + { state.detailSet && !state.access && ( )} { state.detailSet && state.host && ( - + )} { state.detailSet && !state.host && ( diff --git a/app/client/mobile/src/session/Session.tsx b/app/client/mobile/src/session/Session.tsx index 7f6c0dc0..e2e9926d 100644 --- a/app/client/mobile/src/session/Session.tsx +++ b/app/client/mobile/src/session/Session.tsx @@ -41,7 +41,6 @@ export function Session() { const textContact = (cardId: null|string) => { setTextCard({ cardId }); - setTab('content') } const dismiss = () => { @@ -51,6 +50,10 @@ export function Session() { }, 60000); } + const contentTab = () => { + setTab('content'); + } + return ( {state.layout !== 'large' && ( @@ -62,7 +65,7 @@ export function Session() { ...styles.body, ...showContent, }}> - + void}) { + const openConversation = (props) => { + props.navigation.navigate('conversation'); + contentTab(); + } + return ( {props => ( - props.navigation.navigate('conversation')} /> + openConversation(props)} /> )}