diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/FileUploadOperation.java b/TMessagesProj/src/main/java/org/telegram/messenger/FileUploadOperation.java
index 59248efbb..3e202d424 100644
--- a/TMessagesProj/src/main/java/org/telegram/messenger/FileUploadOperation.java
+++ b/TMessagesProj/src/main/java/org/telegram/messenger/FileUploadOperation.java
@@ -26,6 +26,8 @@ import java.io.RandomAccessFile;
import java.lang.reflect.Method;
import java.util.ArrayList;
+import tw.nekomimi.nekogram.NekoConfig;
+
public class FileUploadOperation {
private static class UploadCachedResult {
@@ -38,6 +40,7 @@ public class FileUploadOperation {
private boolean nextPartFirst;
private int operationGuid;
private static final int minUploadChunkSize = 128;
+ private static final int minUploadChunkSizeBoost = 512;
private static final int minUploadChunkSlowNetworkSize = 32;
private static final int initialRequestsCount = 8;
private static final int initialRequestsSlowNetworkCount = 1;
@@ -283,7 +286,7 @@ public class FileUploadOperation {
if (AccountInstance.getInstance(currentAccount).getUserConfig().isPremium() && totalFileSize > FileLoader.DEFAULT_MAX_FILE_SIZE) {
maxUploadParts = MessagesController.getInstance(currentAccount).uploadMaxFilePartsPremium;
}
- uploadChunkSize = (int) Math.max(slowNetwork ? minUploadChunkSlowNetworkSize : minUploadChunkSize, (totalFileSize + 1024L * maxUploadParts - 1) / (1024L * maxUploadParts));
+ uploadChunkSize = (int) Math.max(slowNetwork ? minUploadChunkSlowNetworkSize : NekoConfig.enhancedFileLoader.Bool() ? minUploadChunkSizeBoost : minUploadChunkSize, (totalFileSize + 1024L * maxUploadParts - 1) / (1024L * maxUploadParts));
if (1024 % uploadChunkSize != 0) {
int chunkSize = 64;
while (uploadChunkSize > chunkSize) {
diff --git a/TMessagesProj/src/main/res/values-zh-rCN/strings_neko.xml b/TMessagesProj/src/main/res/values-zh-rCN/strings_neko.xml
index 54525b52e..d17f4833f 100644
--- a/TMessagesProj/src/main/res/values-zh-rCN/strings_neko.xml
+++ b/TMessagesProj/src/main/res/values-zh-rCN/strings_neko.xml
@@ -148,5 +148,5 @@
禁用会员贴纸动画
检查 Telegram 的**数据中心**的状态。
数据中心状态
- 加速下载
+ 加速上传和下载
diff --git a/TMessagesProj/src/main/res/values/strings_neko.xml b/TMessagesProj/src/main/res/values/strings_neko.xml
index 8256caa9b..713c363d7 100644
--- a/TMessagesProj/src/main/res/values/strings_neko.xml
+++ b/TMessagesProj/src/main/res/values/strings_neko.xml
@@ -150,7 +150,7 @@
This contact is a mutual contact.
Check the status of Telegram\'s **datacenters**.
Datacenter status
- Enhance Download speed
+ Enhance Upload and Download speed
Fix Google Maps drifting in China
Use OSMDroid Map