Add additional validation for group messages.
This commit is contained in:
parent
e565de0724
commit
b2b907a86a
1 changed files with 4 additions and 0 deletions
|
@ -120,6 +120,10 @@ object EnvelopeContentValidator {
|
|||
return Result.Invalid("[DataMessage] Invalid attachments!")
|
||||
}
|
||||
|
||||
if (dataMessage.hasGroupV2()) {
|
||||
validateGroupContextV2(dataMessage.groupV2, "[DataMessage]")?.let { return it }
|
||||
}
|
||||
|
||||
return Result.Valid
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue