Add ability to report a group chat (#10485)
This commit is contained in:
@@ -55,7 +55,9 @@ export function useSubmitReportMutation() {
|
||||
let report:
|
||||
| ComAtprotoModerationCreateReport.InputSchema
|
||||
| (Omit<ComAtprotoModerationCreateReport.InputSchema, 'subject'> & {
|
||||
subject: $Typed<ChatBskyConvoDefs.MessageRef>
|
||||
subject:
|
||||
| $Typed<ChatBskyConvoDefs.MessageRef>
|
||||
| $Typed<ChatBskyConvoDefs.ConvoRef>
|
||||
})
|
||||
|
||||
switch (subject.type) {
|
||||
@@ -99,6 +101,18 @@ export function useSubmitReportMutation() {
|
||||
}
|
||||
break
|
||||
}
|
||||
case 'convo': {
|
||||
report = {
|
||||
reasonType,
|
||||
reason: state.details,
|
||||
subject: {
|
||||
$type: 'chat.bsky.convo.defs#convoRef',
|
||||
convoId: subject.convoId,
|
||||
did: subject.did,
|
||||
},
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if (__DEV__) {
|
||||
|
||||
Reference in New Issue
Block a user