mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Rename ByteSize.to to ByteSize.into
This method could clash the the `a to b` operator.
This commit is contained in:
committed by
Jorge Martin Espinosa
parent
a7eb46ed45
commit
6441153dba
+2
-2
@@ -81,9 +81,9 @@ class RustMatrixClientFactory(
|
||||
client.setMediaRetentionPolicy(
|
||||
MediaRetentionPolicy(
|
||||
// Make this 500MB instead of 400MB
|
||||
maxCacheSize = 500.megaBytes.to(ByteUnit.BYTES).toULong(),
|
||||
maxCacheSize = 500.megaBytes.into(ByteUnit.BYTES).toULong(),
|
||||
// This is the default value, but let's make it explicit
|
||||
maxFileSize = 20.megaBytes.to(ByteUnit.BYTES).toULong(),
|
||||
maxFileSize = 20.megaBytes.into(ByteUnit.BYTES).toULong(),
|
||||
// Use 30 days instead of 60
|
||||
lastAccessExpiry = 30.days.toJavaDuration(),
|
||||
// This is the default value, but let's make it explicit
|
||||
|
||||
Reference in New Issue
Block a user