Cleanup MessageContentProcessorTestV2.

This commit is contained in:
Cody Henthorne
2023-04-11 11:52:38 -04:00
committed by Greyson Parrelli
parent a874efee4e
commit 36ef36be61
4 changed files with 78 additions and 69 deletions

View File

@@ -819,7 +819,7 @@ object DataMessageProcessor {
val mentions: List<Mention> = getMentions(message.bodyRangesList)
val sticker: Attachment? = getStickerAttachment(envelope.timestamp, message)
val attachments: List<Attachment> = message.attachmentsList.toPointers()
val messageRanges: BodyRangeList? = message.bodyRangesList.filter { it.hasStyle() }.toList().toBodyRangeList()
val messageRanges: BodyRangeList? = if (message.bodyRangesCount > 0) message.bodyRangesList.filter { it.hasStyle() }.toList().toBodyRangeList() else null
handlePossibleExpirationUpdate(envelope, metadata, senderRecipient.id, threadRecipientId, groupId, message.expireTimer.seconds, receivedTime)

View File

@@ -201,7 +201,7 @@ import java.util.concurrent.TimeUnit;
@SuppressWarnings({ "OptionalGetWithoutIsPresent", "OptionalIsPresent" })
public class MessageContentProcessor {
private static final String TAG = Log.tag(MessageContentProcessor.class);
public static final String TAG = Log.tag(MessageContentProcessor.class);
private final Context context;