Skip to content

Commit

Permalink
fix(Message): confirm deletion/styling tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexogamer committed Dec 9, 2023
1 parent 0ea52fe commit bf885a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/common/messaging/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ export const Message = observer((props: MessageProps) => {
style={{
fontSize: 11,
position: 'relative',
right: 47,
right: 49,
marginBottom: -16,
}}>
{' '}
Expand Down
1 change: 1 addition & 0 deletions src/components/modals/ConfirmDeletionModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const ConfirmDeletionModal = observer(
break;
case 'Message':
await target.object.delete();
app.openDeletionConfirmationModal(null);
break;
default:
break;
Expand Down
5 changes: 4 additions & 1 deletion src/components/sheets/MessageMenuSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,10 @@ export const MessageMenuSheet = observer(() => {
message?.author?.relationship === 'User' ? (
<ContextButton
onPress={() => {
message.delete();
app.openDeletionConfirmationModal({
type: 'Message',
object: message,
});
app.openMessage(null);
}}>
<View style={styles.iconContainer}>
Expand Down

0 comments on commit bf885a9

Please sign in to comment.