1
0
mirror of https://github.com/MGislv/NekoX.git synced 2024-07-04 11:13:36 +00:00

Remove accept secret chat

This commit is contained in:
luvletter2333 2021-12-23 23:06:53 +08:00
parent 5f41f3f0cb
commit 67703b1717
No known key found for this signature in database
GPG Key ID: A26A8880836E1978
3 changed files with 0 additions and 8 deletions

View File

@ -188,10 +188,6 @@ public class SecretChatHelper extends BaseController {
TLRPC.EncryptedChat existingChat = getMessagesController().getEncryptedChatDB(newChat.id, false);
if (newChat instanceof TLRPC.TL_encryptedChatRequested && existingChat == null) {
if (!NekomuraConfig.acceptSecretChat.Bool()) {
declineSecretChat(newChat.id, true);
return;
}
long userId = newChat.participant_id;
if (userId == getUserConfig().getClientUserId()) {

View File

@ -120,7 +120,6 @@ public class NekoGeneralSettingsActivity extends BaseFragment {
private final AbstractCell sortMenuRow = cellGroup.appendCell(new NekomuraTGSelectBox(LocaleController.getString("SortMenu"), null, null, () -> {
showSortMenuAlert();
}));
private final AbstractCell acceptSecretChatRow = cellGroup.appendCell(new NekomuraTGTextCheck(NekomuraConfig.acceptSecretChat));
private final AbstractCell divider4 = cellGroup.appendCell(new NekomuraTGDivider());
private final AbstractCell header5 = cellGroup.appendCell(new NekomuraTGHeader(LocaleController.getString("Appearance")));

View File

@ -159,7 +159,6 @@ public class NekomuraConfig {
public static ConfigItem disableLinkPreviewByDefault = addConfig("DisableLinkPreviewByDefault", configTypeBool, false);
public static ConfigItem sendCommentAfterForward = addConfig("SendCommentAfterForward", configTypeBool, true);
public static ConfigItem increaseVoiceMessageQuality = addConfig("IncreaseVoiceMessageQuality", configTypeBool, true);
public static ConfigItem acceptSecretChat = addConfig("AcceptSecretChat", configTypeBool, true);
public static ConfigItem disableTrending = addConfig("DisableTrending", configTypeBool, true);
public static ConfigItem dontSendGreetingSticker = addConfig("DontSendGreetingSticker", configTypeBool, false);
public static ConfigItem hideTimeForSticker = addConfig("HideTimeForSticker", configTypeBool, false);
@ -497,8 +496,6 @@ public class NekomuraConfig {
sendCommentAfterForward.setConfigBool(preferences.getBoolean("sendCommentAfterForward", true));
if (preferences.contains("increaseVoiceMessageQuality"))
increaseVoiceMessageQuality.setConfigBool(preferences.getBoolean("increaseVoiceMessageQuality", true));
if (preferences.contains("acceptSecretChat"))
acceptSecretChat.setConfigBool(preferences.getBoolean("acceptSecretChat", true));
if (preferences.contains("disableTrending"))
disableTrending.setConfigBool(preferences.getBoolean("disableTrending", true));
if (preferences.contains("dontSendGreetingSticker"))