Drop all messages sent to a terminated group.

This commit is contained in:
Cody Henthorne
2026-03-26 15:21:49 -04:00
parent f533ad1533
commit 17faf56388

View File

@@ -256,10 +256,8 @@ open class MessageContentProcessor(private val context: Context) {
}
if (groupRecord.isPresent && groupRecord.get().isTerminated) {
if (content.dataMessage != null && !content.dataMessage!!.hasSignedGroupChange) {
Log.w(TAG, "Ignoring message from ${senderRecipient.id} because the group is terminated.")
return Gv2PreProcessResult.IGNORE
}
Log.w(TAG, "Ignoring message from ${senderRecipient.id} because the group is terminated.")
return Gv2PreProcessResult.IGNORE
}
if (groupRecord.isPresent && groupRecord.get().isAnnouncementGroup && !groupRecord.get().admins.contains(senderRecipient)) {