mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-28 02:37:46 +00:00
fix: raise output max buffer size to Job.MAX_BUFFER_SIZE
This commit is contained in:
parent
d57903aa44
commit
f7bec07503
@ -140,7 +140,7 @@ class AttachmentUploadJob(val attachmentID: Long, val threadID: String, val mess
|
||||
val kryo = Kryo()
|
||||
kryo.isRegistrationRequired = false
|
||||
val serializedMessage = ByteArray(4096)
|
||||
val output = Output(serializedMessage)
|
||||
val output = Output(serializedMessage, Job.MAX_BUFFER_SIZE)
|
||||
kryo.writeClassAndObject(output, message)
|
||||
output.close()
|
||||
return Data.Builder()
|
||||
|
Loading…
x
Reference in New Issue
Block a user