diff --git a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java index 2ec646ff5..e6bdf54aa 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/ChatActivity.java @@ -1470,6 +1470,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not if (reaction == null) { return false; } + if (NekoConfig.disableDoubleTabReactions.Bool()) return false; boolean available = dialog_id >= 0; if (!available && chatInfo != null) { for (String s : chatInfo.available_reactions) { @@ -1497,6 +1498,7 @@ public class ChatActivity extends BaseFragment implements NotificationCenter.Not if (reaction == null) { return; } + if (NekoConfig.disableDoubleTabReactions.Bool()) return; boolean available = dialog_id >= 0; if (!available && chatInfo != null) { for (String s : chatInfo.available_reactions) { diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java index 99ae9aa13..f2bca4ad2 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/NekoConfig.java @@ -164,6 +164,7 @@ public class NekoConfig { public static ConfigItem rememberAllBackMessages = addConfig("rememberAllBackMessages", configTypeBool, false); public static ConfigItem hideSendAsChannel = addConfig("hideSendAsChannel", configTypeBool, false); public static ConfigItem showSpoilersDirectly = addConfig("showSpoilersDirectly", configTypeBool, false); + public static ConfigItem disableDoubleTabReactions = addConfig("disableDoubleTabReactions", configTypeBool, false); public static ConfigItem disableAutoDownloadingWin32Executable = addConfig("Win32ExecutableFiles", configTypeBool, true); public static ConfigItem disableAutoDownloadingArchive = addConfig("ArchiveFiles", configTypeBool, true); diff --git a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java index 5b60d301a..d6c6b00e1 100644 --- a/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java +++ b/TMessagesProj/src/main/java/tw/nekomimi/nekogram/settings/NekoChatSettingsActivity.java @@ -105,6 +105,7 @@ public class NekoChatSettingsActivity extends BaseFragment implements Notificati private final AbstractConfigCell rememberAllBackMessagesRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.rememberAllBackMessages)); private final AbstractConfigCell hideSendAsChannelRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.hideSendAsChannel)); private final AbstractConfigCell showSpoilersDirectlyRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.showSpoilersDirectly)); + private final AbstractConfigCell disableDoubleTabReactionsRow = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.disableDoubleTabReactions)); private final AbstractConfigCell divider1 = cellGroup.appendCell(new ConfigCellDivider()); private final AbstractConfigCell header2 = cellGroup.appendCell(new ConfigCellHeader(LocaleController.getString("AutoDownload"))); private final AbstractConfigCell win32Row = cellGroup.appendCell(new ConfigCellTextCheck(NekoConfig.disableAutoDownloadingWin32Executable)); diff --git a/TMessagesProj/src/main/res/values/strings_neko.xml b/TMessagesProj/src/main/res/values/strings_neko.xml index ea47d00f9..44bfefacd 100644 --- a/TMessagesProj/src/main/res/values/strings_neko.xml +++ b/TMessagesProj/src/main/res/values/strings_neko.xml @@ -126,6 +126,7 @@ Update proxies automatically Hide send as channel Display Spoiler messages directly + Disable double tap reactions Saving %1$d files to downloads Saving %1$d file to downloads Saving %1$d files to downloads