Cleanup Recipient.externalPush to use RecipientId cache.

This commit is contained in:
Clark
2023-05-15 09:59:09 -04:00
committed by Greyson Parrelli
parent fe8b2cb761
commit e5bf04a407
4 changed files with 17 additions and 18 deletions

View File

@@ -303,7 +303,7 @@ open class MessageContentProcessorV2(private val context: Context) {
open fun process(envelope: Envelope, content: Content, metadata: EnvelopeMetadata, serverDeliveredTimestamp: Long, processingEarlyContent: Boolean = false) {
val stopwatch = Stopwatch("process-content")
val senderRecipient = Recipient.resolved(RecipientId.from(SignalServiceAddress(metadata.sourceServiceId, metadata.sourceE164)))
val senderRecipient = Recipient.externalPush(SignalServiceAddress(metadata.sourceServiceId, metadata.sourceE164))
handleMessage(senderRecipient, envelope, content, metadata, serverDeliveredTimestamp, processingEarlyContent, stopwatch)