mirror of https://github.com/NekoX-Dev/NekoX.git
add disablePremiumStickerAnimation
This commit is contained in:
parent
ef9e0aa3d5
commit
db86538019
|
@ -317,6 +317,9 @@ public class EmojiAnimationsOverlay implements NotificationCenter.NotificationCe
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean onTapItem(ChatMessageCell view, ChatActivity chatActivity) {
|
public boolean onTapItem(ChatMessageCell view, ChatActivity chatActivity) {
|
||||||
|
if (NekoConfig.disablePremiumStickerAnimation.Bool()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (chatActivity.isSecretChat() || view.getMessageObject() == null || view.getMessageObject().getId() < 0) {
|
if (chatActivity.isSecretChat() || view.getMessageObject() == null || view.getMessageObject().getId() < 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -166,6 +166,7 @@ public class NekoConfig {
|
||||||
public static ConfigItem disableRemoteEmojiInteractions = addConfig("disableRemoteEmojiInteractions", configTypeBool, true);
|
public static ConfigItem disableRemoteEmojiInteractions = addConfig("disableRemoteEmojiInteractions", configTypeBool, true);
|
||||||
public static ConfigItem disableChoosingSticker = addConfig("disableChoosingSticker", configTypeBool, false);
|
public static ConfigItem disableChoosingSticker = addConfig("disableChoosingSticker", configTypeBool, false);
|
||||||
public static ConfigItem hideGroupSticker = addConfig("hideGroupSticker", configTypeBool, false);
|
public static ConfigItem hideGroupSticker = addConfig("hideGroupSticker", configTypeBool, false);
|
||||||
|
public static ConfigItem disablePremiumStickerAnimation = addConfig("disablePremiumStickerAnimation", configTypeBool, false);
|
||||||
public static ConfigItem hideSponsoredMessage = addConfig("hideSponsoredMessage", configTypeBool, false);
|
public static ConfigItem hideSponsoredMessage = addConfig("hideSponsoredMessage", configTypeBool, false);
|
||||||
public static ConfigItem rememberAllBackMessages = addConfig("rememberAllBackMessages", configTypeBool, false);
|
public static ConfigItem rememberAllBackMessages = addConfig("rememberAllBackMessages", configTypeBool, false);
|
||||||
public static ConfigItem hideSendAsChannel = addConfig("hideSendAsChannel", configTypeBool, false);
|
public static ConfigItem hideSendAsChannel = addConfig("hideSendAsChannel", configTypeBool, false);
|
||||||
|
|
Loading…
Reference in New Issue