mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
feat: include message context (if any) when reporting user
This commit is contained in:
@@ -41,6 +41,7 @@ const MessageContainer = styled.div`
|
||||
*/
|
||||
export default function ReportContent({
|
||||
target,
|
||||
messageId,
|
||||
...props
|
||||
}: ModalProps<"report">) {
|
||||
const client = useClient();
|
||||
@@ -124,6 +125,7 @@ export default function ReportContent({
|
||||
? "User"
|
||||
: "Server",
|
||||
report_reason: reason as any,
|
||||
message_id: messageId,
|
||||
},
|
||||
additional_context,
|
||||
});
|
||||
|
||||
@@ -182,6 +182,7 @@ export type Modal = {
|
||||
| {
|
||||
type: "report";
|
||||
target: Server | User | Message;
|
||||
messageId?: string;
|
||||
}
|
||||
| {
|
||||
type: "report_success";
|
||||
|
||||
Reference in New Issue
Block a user