···13 type DialogControlRefProps,
14 type DialogOuterProps,
15} from '#/components/Dialog/types'
16+import {IS_DEV} from '#/env'
17import {BottomSheetSnapPoint} from '../../../modules/bottom-sheet/src/BottomSheet.types'
1819export const Context = createContext<DialogContextProps>({
···51 id,
52 ref: control,
53 open: () => {
54+ if (control.current) {
55+ control.current.open()
56+ } else {
57+ if (IS_DEV) {
58+ console.warn(
59+ 'Attemped to open a dialog control that was not attached to a dialog!\n' +
60+ 'Please ensure that the Dialog is mounted when calling open/close',
61+ )
62+ }
63+ }
64 },
65 close: cb => {
66+ if (control.current) {
67+ control.current.close(cb)
68+ } else {
69+ if (IS_DEV) {
70+ console.warn(
71+ 'Attemped to close a dialog control that was not attached to a dialog!\n' +
72+ 'Please ensure that the Dialog is mounted when calling open/close',
73+ )
74+ }
75+ }
76 },
77 }),
78 [id, control],
···38 subtitle: _(msg`Why should this starter pack be reviewed?`),
39 }
40 }
41- case 'chatMessage': {
42- return {
43- title: _(msg`Report this message`),
44- subtitle: _(msg`Why should this message be reviewed?`),
000000000045 }
46 }
47 }
···38 subtitle: _(msg`Why should this starter pack be reviewed?`),
39 }
40 }
41+ case 'convoMessage': {
42+ switch (subject.view) {
43+ case 'convo': {
44+ return {
45+ title: _(msg`Report this conversation`),
46+ subtitle: _(msg`Why should this conversation be reviewed?`),
47+ }
48+ }
49+ case 'message': {
50+ return {
51+ title: _(msg`Report this message`),
52+ subtitle: _(msg`Why should this message be reviewed?`),
53+ }
54+ }
55 }
56 }
57 }
···580 label={_(msg`View post`)}
581 onPress={() => {
582 const {host: name, rkey} = new AtUri(postUri)
583- navigation.push('PostThread', {name, rkey})
584 }}>
585 <Trans context="Action to view the post the user just created">
586 View
···580 label={_(msg`View post`)}
581 onPress={() => {
582 const {host: name, rkey} = new AtUri(postUri)
583+ navigation.navigate('PostThread', {name, rkey})
584 }}>
585 <Trans context="Action to view the post the user just created">
586 View