Update announcement checks.
This commit is contained in:
parent
4bc11fcf0d
commit
6d260ab63d
@ -279,6 +279,11 @@ open class MessageContentProcessor(private val context: Context) {
|
||||
Log.w(TAG, "Ignoring message from ${senderRecipient.id} because it has disallowed content, and they're not an admin in an announcement-only group.")
|
||||
return Gv2PreProcessResult.IGNORE
|
||||
}
|
||||
} else if (content.editMessage?.dataMessage != null) {
|
||||
if (content.editMessage!!.dataMessage!!.hasDisallowedAnnouncementOnlyContent) {
|
||||
Log.w(TAG, "Ignoring edit message from ${senderRecipient.id} because it has disallowed content, and they're not an admin in an announcement-only group.")
|
||||
return Gv2PreProcessResult.IGNORE
|
||||
}
|
||||
} else if (content.typingMessage != null) {
|
||||
Log.w(TAG, "Ignoring typing indicator from ${senderRecipient.id} because they're not an admin in an announcement-only group.")
|
||||
return Gv2PreProcessResult.IGNORE
|
||||
|
||||
@ -67,7 +67,8 @@ object SignalServiceProtoUtil {
|
||||
quote != null ||
|
||||
preview.isNotEmpty() ||
|
||||
bodyRanges.isNotEmpty() ||
|
||||
sticker != null
|
||||
sticker != null ||
|
||||
pollCreate != null
|
||||
}
|
||||
|
||||
val DataMessage.isExpirationUpdate: Boolean
|
||||
|
||||
Loading…
Reference in New Issue
Block a user