control when editing allowed

This commit is contained in:
balzack 2025-01-04 22:36:15 -08:00
parent 6ddb9055c0
commit b3dc1459ca
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@ export const styles = StyleSheet.create({
width: '100%',
},
topic: {
paddingTop: 8,
display: 'flex',
flexDirection: 'column',
width: '100%',

View File

@ -226,10 +226,10 @@ export function Message({ topic, card, profile, host, select, selected }: { topi
)}
{ topicId === selected && (
<Surface style={styles.options}>
{ !locked && (
{ !locked && status === 'confirmed' && (
<IconButton style={styles.option} loading={false} compact="true" mode="contained" icon="share-variant-outline" size={24} onPress={() => {}} />
)}
{ !locked && profile && (
{ !locked && profile && status === 'confirmed' && (
<IconButton style={styles.option} loading={false} compact="true" mode="contained" icon="square-edit-outline" size={24} onPress={edit} />
)}
{ (host || profile) && (