revert: 'feat: disable noforwards'

This reverts commit d76821021f.
This commit is contained in:
Next Alone 2022-07-06 20:58:54 +08:00
parent aafb2a406f
commit 330f883938
No known key found for this signature in database
GPG Key ID: DBA7B0AEF8C1CD2C
5 changed files with 5 additions and 14 deletions

View File

@ -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);

View File

@ -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);
}
}
}
}

View File

@ -162,11 +162,6 @@ object NaConfig {
ConfigItem.configTypeBool,
true
)
val DisableNoforwards = addConfig(
"DisableNoforwards",
ConfigItem.configTypeBool,
false
)
val DateOfForwardedMsg = addConfig(
"DateOfForwardedMsg",
ConfigItem.configTypeBool,

View File

@ -26,7 +26,6 @@
<string name="CreateMonoLanguage">等宽语言</string>
<string name="CodeSyntaxHighlightDetails">感谢 prismjs and Nekogram</string>
<string name="UseSystemUnlock">锁定码解锁使用系统界面</string>
<string name="DisableNoforwards">禁用转发限制</string>
<string name="CopyPhoto">复制图片</string>
<string name="PhotoCopied">图片已复制到剪贴板</string>
<string name="ToTheBeginning">回到顶部</string>

View File

@ -26,7 +26,6 @@
<string name="CreateMonoLanguage">Code language</string>
<string name="CodeSyntaxHighlightDetails">Thanks to prismjs and Nekogram</string>
<string name="UseSystemUnlock">Passcode Unlock use system ui</string>
<string name="DisableNoforwards">Disable noforwards</string>
<string name="CopyPhoto">Copy Photo</string>
<string name="PhotoCopied">Photo copied to Clipboard</string>
<string name="ToTheBeginning">To the beginning</string>