diff --git a/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java b/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java index bfbe54a9a..41f4efdb8 100644 --- a/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java +++ b/TMessagesProj/src/main/java/org/telegram/tgnet/TLRPC.java @@ -26,7 +26,6 @@ import java.util.List; import cn.hutool.core.util.ArrayUtil; import tw.nekomimi.nekogram.NekoXConfig; -import xyz.nextalone.nagram.NaConfig; @SuppressWarnings("unchecked") public class TLRPC { @@ -38986,7 +38985,7 @@ public class TLRPC { deactivated = (flags & 32) != 0; call_active = (flags & 8388608) != 0; call_not_empty = (flags & 16777216) != 0; - noforwards = (flags & 33554432) != 0 && !NaConfig.INSTANCE.getDisableNoforwards().Bool(); + noforwards = (flags & 33554432) != 0; id = stream.readInt64(exception); title = stream.readString(exception); photo = ChatPhoto.TLdeserialize(stream, stream.readInt32(exception), exception); @@ -39267,7 +39266,7 @@ public class TLRPC { call_not_empty = (flags & 16777216) != 0; fake = (flags & 33554432) != 0; gigagroup = (flags & 67108864) != 0; - noforwards = (flags & 134217728) != 0 && !NaConfig.INSTANCE.getDisableNoforwards().Bool(); + noforwards = (flags & 134217728) != 0; id = stream.readInt64(exception); if ((flags & 8192) != 0) { access_hash = stream.readInt64(exception); @@ -55189,7 +55188,7 @@ public class TLRPC { legacy = (flags & 524288) != 0; edit_hide = (flags & 2097152) != 0; pinned = (flags & 16777216) != 0; - noforwards = (flags & 67108864) != 0 && !NaConfig.INSTANCE.getDisableNoforwards().Bool(); + noforwards = (flags & 67108864) != 0; id = stream.readInt32(exception); if ((flags & 256) != 0) { from_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); @@ -55372,7 +55371,7 @@ public class TLRPC { legacy = (flags & 524288) != 0; edit_hide = (flags & 2097152) != 0; pinned = (flags & 16777216) != 0; - noforwards = (flags & 67108864) != 0 && !NaConfig.INSTANCE.getDisableNoforwards().Bool(); + noforwards = (flags & 67108864) != 0; id = stream.readInt32(exception); if ((flags & 256) != 0) { from_id = Peer.TLdeserialize(stream, stream.readInt32(exception), exception); diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java index dde48b145..3ea09fd2a 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoExperimentalSettingsActivity.java @@ -90,7 +90,6 @@ public class NekoExperimentalSettingsActivity extends BaseFragment { private final AbstractConfigCell header2 = cellGroup.appendCell(new ConfigCellHeader(LocaleController.getString("N_Config"))); private final AbstractConfigCell forceCopyRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getForceCopy())); - private final AbstractConfigCell disableNoforwardsRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getDisableNoforwards())); private final AbstractConfigCell audioEnhanceRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getNoiseSuppressAndVoiceEnhance())); private final AbstractConfigCell showRPCErrorRow = cellGroup.appendCell(new ConfigCellTextCheck(NaConfig.INSTANCE.getShowRPCError())); private final AbstractConfigCell divider1 = cellGroup.appendCell(new ConfigCellDivider()); @@ -493,4 +492,4 @@ public class NekoExperimentalSettingsActivity extends BaseFragment { return new RecyclerListView.Holder(view); } } -} +} \ No newline at end of file diff --git a/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt b/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt index c05203ca9..f7be9e427 100644 --- a/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt +++ b/TMessagesProj/src/main/kotlin/xyz/nextalone/nagram/NaConfig.kt @@ -162,11 +162,6 @@ object NaConfig { ConfigItem.configTypeBool, true ) - val DisableNoforwards = addConfig( - "DisableNoforwards", - ConfigItem.configTypeBool, - false - ) val DateOfForwardedMsg = addConfig( "DateOfForwardedMsg", ConfigItem.configTypeBool, diff --git a/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml b/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml index 935a43886..c1f2fa049 100644 --- a/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml +++ b/TMessagesProj/src/main/res/values-zh-rCN/strings_na.xml @@ -26,7 +26,6 @@ 等宽语言 感谢 prismjs and Nekogram 锁定码解锁使用系统界面 - 禁用转发限制 复制图片 图片已复制到剪贴板 回到顶部 diff --git a/TMessagesProj/src/main/res/values/strings_na.xml b/TMessagesProj/src/main/res/values/strings_na.xml index b98dfa399..849a67d69 100644 --- a/TMessagesProj/src/main/res/values/strings_na.xml +++ b/TMessagesProj/src/main/res/values/strings_na.xml @@ -26,7 +26,6 @@ Code language Thanks to prismjs and Nekogram Passcode Unlock use system ui - Disable noforwards Copy Photo Photo copied to Clipboard To the beginning