mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Add additional validation for group messages.
This commit is contained in:
committed by
Cody Henthorne
parent
e565de0724
commit
b2b907a86a
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user