Skip to content

Commit

Permalink
Fix attachment crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtang-signal authored and greyson-signal committed Nov 8, 2024
1 parent d11c117 commit 2c842ae
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import org.whispersystems.signalservice.internal.push.http.ResumableUploadSpec
import org.whispersystems.signalservice.internal.websocket.WebSocketRequestMessage
import java.io.InputStream
import java.security.SecureRandom
import kotlin.jvm.optionals.getOrNull

/**
* Class to interact with various attachment-related endpoints.
Expand Down Expand Up @@ -108,7 +109,7 @@ class AttachmentApi(
incrementalDigestChunkSize = digestInfo.incrementalMacChunkSize,
uploadTimestamp = attachmentStream.uploadTimestamp,
dataSize = attachmentStream.length,
blurHash = attachmentStream.blurHash.get()
blurHash = attachmentStream.blurHash.getOrNull()
)
}
}
Expand Down

0 comments on commit 2c842ae

Please sign in to comment.