Filter attachments except for LONG_TEXT when receiving an EditMessage.

This commit is contained in:
Alex Hart
2025-10-15 12:15:02 -03:00
committed by Cody Henthorne
parent a430e9b3d3
commit 518bf04e1d

View File

@@ -136,8 +136,7 @@ object EditMessageProcessor {
} else {
null
}
val attachments = message.attachments.toPointersWithinLimit()
attachments.filter {
val attachments = message.attachments.toPointersWithinLimit().filter {
MediaUtil.SlideType.LONG_TEXT == MediaUtil.getSlideTypeFromContentType(it.contentType)
}
val mediaMessage = IncomingMessage(