diff --git a/src/components/dms/BlockOrDeleteDialog.tsx b/src/components/dms/BlockOrDeleteDialog.tsx index 96120ab2d6..961613b560 100644 --- a/src/components/dms/BlockOrDeleteDialog.tsx +++ b/src/components/dms/BlockOrDeleteDialog.tsx @@ -59,20 +59,48 @@ function DialogInner({ params: ReportDialogParams currentScreen: 'list' | 'conversation' }) { - const {data: profile} = useProfileQuery({ + const t = useTheme() + const {_} = useLingui() + const control = Dialog.useDialogContext() + const { + data: profile, + isLoading, + isError, + } = useProfileQuery({ did: params.message.sender.did, }) - return profile ? ( + return isLoading ? ( + + + + ) : isError || !profile ? ( + + + + Report submitted + + + Our moderation team has received your report. + + + + + + ) : ( - ) : ( - - - ) }