Add ability to report a group chat (#10485)
This commit is contained in:
@@ -17,9 +17,16 @@ export function parseReportSubject(
|
||||
if (!subject) return
|
||||
|
||||
if ('convoId' in subject) {
|
||||
if ('message' in subject) {
|
||||
return {
|
||||
type: 'convoMessage',
|
||||
...subject,
|
||||
}
|
||||
}
|
||||
return {
|
||||
type: 'convoMessage',
|
||||
...subject,
|
||||
type: 'convo',
|
||||
convoId: subject.convoId,
|
||||
did: subject.did,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user